Releases: NeoTech-Software/Android-Root-Coverage-Plugin
Releases · NeoTech-Software/Android-Root-Coverage-Plugin
Release 1.9.0
Fixes
- Fix: rootCoverageReport ignores androidTests coverage results when executeAndroidTests is false by @k4k7us23 in #104
- Fix: Coverage data not picked-up using Gradle Managed Devices and flavors by @Rolf-Smit in #108
Changes
- Update: Dependencies to latest versions by @Rolf-Smit in #107
- Minimum required Gradle version is now 8.7
- Minimum required Android Gradle Plugin is now 8.6.0 (may also work on lower versions still, but is untested)
Pipeline changes
- Update: Codecov configuration and GitHub Actions by @Rolf-Smit in #100
- Fix: Run CI on Ubuntu (with KVM enabled) instead of MacOS by @Rolf-Smit in #105
- Change: Enable Gradle Managed Device usage on CI by @Rolf-Smit in #106
- Fix: Uploading artifacts to Gradle Plugin Portal and Maven Central by @Rolf-Smit in #110
New Contributors
Full Changelog: release-1.8.0...release-1.9.0
1.8.0
1.7.1
1.7.0
- Compatible with Android Gradle Plugin 7.4+
- Compatible with Gradle version 7.5+
New:
- Added: (experimental) support for running, and using test coverage results from, Gradle Managed Devices
Note: A SNAPSHOT 1.8.0 build that supports Android Gradle Plugin 8.3 is work-in-progress, and I expect to soon release the first SNAPSHOT.
1.6.0
- Compatible with Android Gradle Plugin 7.3+
- Compatible with Gradle version 7.4+
Changed:
- The plugin now also checks
enableUnitTestCoverage
andenableAndroidTestCoverage
as well as the now (in AGP 7.3) deprecated propertytestCoverageEnabled
. executeTests
configuration property has been deprecated. To follow the convention of the Android Gradle Plugin, it makes sense to only support the specificexecuteAndroidTests
andexecuteUnitTests
properties (just like AGP 7.3 now hasenableUnitTestCoverage
andenableAndroidTestCoverage
).
1.5.3
1.5.2
1.5.1
1.5.0
Google finally released a stable version of the Android Gradle Plugin 7.2 that fixes #36 , a bug introduced in Android Gradle Plugin 7.0 🥳.
- Compatible with Android Gradle Plugin 7.2+
- Compatible with Gradle version 7.3+
New:
- Adds a minimum required Android Gradle Plugin version check, using an Android Gradle Plugin version that is too old will result in a Gradle build error.
Changed:
- Most of the plugin has been rewritten to only make use of public Android Gradle Plugin API's, functionally this should not change anything compared to previous releases.
- No longer logs warning messages for (sub)projects (modules) that do not use the Android Gradle Plugin. Instead this is now an info message. This info message will only show for (sub)projects that have a build.gradle file (see #45).
- The "Jacoco has been automatically applied" message will no longer be shown, instead this plugin always applies JaCoCo for you when required.
Breaking changes:
None
Bug-fixes:
- Potentially fixes #42, since JaCoCo will now always be applied by the plugin at the root project.
Known issues
- #54
BuildConfig
files may disappear or are not generated. This is caused by a bug in the Android Gradle Plugin version 7.2, a workaround has been released in 1.5.1.
1.4.0
New:
- Support for Android Gradle Plugin 4.1 (although version 1.3.0 also works fine with AGP 4.1).
- Support for per module code coverage. Generate a module specific report by running
./gradlew yourModule:coverageReport
. - New configuration option
includeNoLocationClasses
which (like the name implies) sets Jacoco'sincludeNoLocationClasses
. This makes using the plugin in combination with Robolectric easier, since Robolectric often requiresincludeNoLocationClasses
to be set totrue
.
Changed:
- The "Jacoco has been automatically applied" message is not longer a warning but now an info message.
- The Gradle task
rootCoverageReport
(generated in the root project) has been renamed tocoverageReport
, the old task still works but will generate a warning when used. To run all coverage tasks execute./gradlew coverageReport
, to just run the combined (root) coverage report task use./gradlew :coverageReport
(pay attention to the double colon:
). To run coverage for a specific module use./gradlew :yourModule:coverageReport
.
Breaking changes:
None
Bug-fixes:
None