Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android, cronet, android-interop-testing: bump Android versions #7740

Merged
merged 9 commits into from
Dec 30, 2020

Conversation

voidzcy
Copy link
Contributor

@voidzcy voidzcy commented Dec 21, 2020

Bump target SDK version of grpc-android, grpc-cronet, grpc-android-interop-testing to API 29. Resolves #7439.

  • Migrated android.support to androidx, which is required for Android Q.
  • android.net.NetworkInfo is deprecated in SDK 29, suppressed compiler warnings as it is needed for supporting old Android versions.
  • Robolectric requires Java 9+ for Android 29, which causes unit tests in grpc-cronet fail. Added annotation to emulate Android 28 for grpc-cronet's test.
  • Upgraded android dependencies accordingly in android-interop-testing.

This is also a partial fix for #7734 (grpc-android and grpc-cronet should be clean now, android-interop-testing still has some code lint issues need to be fixed). Also, android examples are not updated.

…ing deprecated NetworkInfo API, which is intended for supporting old API version; migrate to androidX.
…oidX, bump its corresponding dependency versions.
@voidzcy voidzcy marked this pull request as draft December 21, 2020 09:09
@voidzcy voidzcy force-pushed the bugfix/bump_android_sdk_versions branch from 2f1ea10 to dbc6c28 Compare December 22, 2020 06:08
…notation to emulate Android 28 for cronet tests.
…ing deprecated NetworkInfo API, which is intended for supporting old API version; migrate to androidX.
…oidX, bump its corresponding dependency versions.
@voidzcy voidzcy marked this pull request as ready for review December 22, 2020 18:09
@voidzcy voidzcy requested a review from ejona86 December 29, 2020 07:56
@voidzcy
Copy link
Contributor Author

voidzcy commented Dec 29, 2020

Note after this change, you may still see tons of

warning: [MissingSummary] A summary line is required on public/protected Javadocs.
    (see http://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment)

in android-interop-testing. Those are hard to fix. The message doesn't give any clue for where the source code is. Will fix it separately.

@ejona86
Copy link
Member

ejona86 commented Dec 29, 2020

Note after this change, you may still see tons of... MissingSummary...

Yeah, I had seen that already. I think google/error-prone#1981 is related, although not the exact same trigger. I think I tracked it down to the gRPC generated code, but couldn't figure out why our filters weren't excluding it from checking.

@voidzcy voidzcy merged commit 64d2bf1 into grpc:master Dec 30, 2020
dfawley pushed a commit to dfawley/grpc-java that referenced this pull request Jan 15, 2021
…#7740)

Bumps target SDK version of grpc-android, grpc-cronet, grpc-android-interop-testing to API 29. Major related changes are:

- Migrated android.support to androidx, which is required for Android Q.
- android.net.NetworkInfo is deprecated in SDK 29, suppressed compiler warnings as it is needed for supporting old Android versions.
- Robolectric requires Java 9+ for Android 29, which causes unit tests in grpc-cronet fail. Added annotation to emulate Android 28 for grpc-cronet's test.
- Upgraded Android dependencies accordingly in android-interop-testing.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade compile/target Android SDK version to 29
2 participants