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
Upgrade AGP to 7 #4133
Upgrade AGP to 7 #4133
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4133 +/- ##
============================================
- Coverage 84.28% 84.08% -0.21%
- Complexity 3282 3305 +23
============================================
Files 474 473 -1
Lines 10429 10787 +358
Branches 1861 1992 +131
============================================
+ Hits 8790 9070 +280
- Misses 670 688 +18
- Partials 969 1029 +60
Continue to review full report at Codecov.
|
This PR is pending on the outcome of #4130 |
To unblock this can we not just restrict the tests to running on JDK 11? We already limit which JDKs can be used to run the Android tests by blocking JDK 16+ due to GSON incompatibility (used by AGP - I haven't tested if that imcompatibility is fixed in AGP 7): internal fun skipIfAndroidEnvironmentRequirementsUnmet() = when {
!isAndroidSdkInstalled() -> Skip.Yes("No android SDK.")
getJdkVersion() >= 16 -> Skip.Yes("Android 4.1.3 & 4.2.1 don't run on JDK 16 or higher")
else -> Skip.No
} |
I agree with you, contingent on the assumption that users are building at least JDK 11 for Android Projects. Maybe we should announce that we can guarantee compatibility with the latest AGP release? |
It's essentially already described on this page: Once we bump AGP to 7.x, we're implicitly dropping support for AGP 4.x |
6 months since agp 7.0 was launched. I'm ok dropping support for agp 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Used https://github.com/cortinico/kotlin-android-template for local testing. It appears to work fine.
EDIT: Now that AGP 7 drops support for Java 8, at some point I think we also need to move towards Java 11.