Skip to content

Support for Android Gradle Plugin version 7 #43

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

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

Rolf-Smit
Copy link
Contributor

@Rolf-Smit Rolf-Smit commented Dec 23, 2021

In Android Gradle Plugin 7.0 a bug was introduced causing instrumented coverage for Android library projects to fail: https://issuetracker.google.com/issues/195860510

This bug has finally been fixed in an alpha release of AGP 7.2 (7.2.0-alpha06). Unfortunately no hot-fix has been released for 7.0 or the 7.1 (which is in beta), only the canary version (7.2) received this fix for now.

As long as there are no hot-fixes for AGP 7.0 and 7.1 specifically I will work towards a release that works at least with AGP 7.2.

This PR contains the necessary changes to work with AGP version 7.2.0-alpha06 and also includes the following other changes:

  • Increased the target and compile SDK version to API level 31 for the test fixtures. This also requires the build to use Java 11.
  • Upgraded several test related dependencies (AppCompat, Google Truth, Robolectric etc.).
  • Upgraded to Kotlin 1.5

Fixes: #36

@Rolf-Smit Rolf-Smit force-pushed the feature/android-build-tools-7.2 branch from 3d88d33 to ec7d55c Compare December 23, 2021 02:24
@Rolf-Smit Rolf-Smit merged commit e67de0a into master Dec 23, 2021
@Rolf-Smit Rolf-Smit deleted the feature/android-build-tools-7.2 branch December 23, 2021 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code Coverage not reported for instrumented tests (Android library module) on AGP 7.0
1 participant