Releases: NeoTech-Software/Android-Root-Coverage-Plugin
Releases · NeoTech-Software/Android-Root-Coverage-Plugin
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
1.3.1
This is a re-release of version 1.3.0 with an updated group ID and plugin ID. This release is not available on JCenter/Bintray but instead has been published to Maven Central and the Gradle Plugin Portal.
To use this release:
- Update references to the group ID from
org.neotech.plugin
tonl.neotech.plugin
- Update references to the plugin ID from
org.neotech.plugin.rootcoverage
to `nl.neotech.plugin.rootcoverage' - Update the version number to 1.3.1
1.3.0
This release officially adds support for Android Gradle Plugin version 3.6.x and therefore raises the minimum Gradle version to 5.6.4. No other changes are included in this release.
1.2.1
- Fixes code in module A not reported as covered even though it is touched by unit tests in module B.
1.2.0
Release highlights:
- Official support for Android Gradle Plugin 3.5 and Gradle 5.6.
- New configuration options that replace the now deprecated
skipTestExecution
andtestTypes
options:executeTests
: When false the plugin does not execute any tests, so you can run them manually or remote (Firebase Test Lab)executeAndroidTests
: Same as executeTests except that this only affects the instrumented Android testsexecuteUnitTests
: Same as executeTests except that this only affects the unit testsincludeAndroidTestResults
: When true include results from instrumented Android tests into the coverage reportincludeUnitTestResults
: When true include results from unit tests into the coverage report
1.1.2
Official support for Android Gradle Plugin 3.4 and Gradle 5.5.
1.1.1
- The minimum supported Gradle version is now 4.10.1, which makes it equal to the minimum supported version that is supported by the Android Gradle plugin version 3.3.0.
1.1.0
Changes:
- Plugin now requires Android Gradle plugin version 3.3.0
Known issues:
- Plugin no longer works with Gradle 4.10.1 (this issue has been fixed in release 1.1.1)