Skip to content

Releases: NeoTech-Software/Android-Root-Coverage-Plugin

Release 1.9.0

07 Sep 22:46
29beee5
Compare
Choose a tag to compare

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

09 Nov 01:14
297b90b
Compare
Choose a tag to compare

Changed:

  • Minimum required Gradle version is now 8.4
  • Minimum required Android Gradle Plugin is now 8.3.0-alpha05
  • Java version is raised to 17 as well as Kotlin to 1.9.23

Fixed:

  • Plugin not working on AGP 8.0+ (Fixes: #82)

New:

  • Support for Gradle Configuration Cache (Fixes: #81)

1.7.1

08 Nov 12:48
49c203e
Compare
Choose a tag to compare
  • Fixes #90: Error when using executeAndroidTests=false without defining a Gradle Managed Device

1.7.0

02 Nov 21:19
ee6f664
Compare
Choose a tag to compare
  • 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

26 Sep 09:03
d4a5cb4
Compare
Choose a tag to compare
  • Compatible with Android Gradle Plugin 7.3+
  • Compatible with Gradle version 7.4+

Changed:

  • The plugin now also checks enableUnitTestCoverage and enableAndroidTestCoverage as well as the now (in AGP 7.3) deprecated property testCoverageEnabled.
  • executeTests configuration property has been deprecated. To follow the convention of the Android Gradle Plugin, it makes sense to only support the specific executeAndroidTests and executeUnitTests properties (just like AGP 7.3 now has enableUnitTestCoverage and enableAndroidTestCoverage).

1.5.3

15 Jun 23:20
4ce3c6c
Compare
Choose a tag to compare

Bug-fixes:

  • Fixes #64 - On Windows during the Gradle configuration phase the plugin would create a file path with an invalid character, this is now fixed.

1.5.2

30 May 09:52
e8d8817
Compare
Choose a tag to compare

Bug-fixes:

  • Fixes #60 - Source code not included in HTML reports, introduced in release 1.5.1 while implementing a workaround for #54. A test case has been added to prevent this from breaking in the future.

1.5.1

23 May 10:48
dae2334
Compare
Choose a tag to compare

Bug-fixes:

  • Fixes #54 - BuildConfig files where no longer generated or disappeared, this is caused by a bug in AGP 7.2, a workaround has been implemented fixing the issue.

1.5.0

12 May 23:11
0b28266
Compare
Choose a tag to compare

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

31 Mar 21:45
Compare
Choose a tag to compare

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's includeNoLocationClasses. This makes using the plugin in combination with Robolectric easier, since Robolectric often requires includeNoLocationClasses to be set to true.

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 to coverageReport, 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