Skip to content

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

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

1.3.1

20 Mar 14:09
8741e65
Compare
Choose a tag to compare

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 to nl.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

02 Mar 23:23
4c6c745
Compare
Choose a tag to compare

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

21 Jan 13:11
a588070
Compare
Choose a tag to compare
  • Fixes code in module A not reported as covered even though it is touched by unit tests in module B.

1.2.0

21 Jan 13:12
e9cee62
Compare
Choose a tag to compare

Release highlights:

  • Official support for Android Gradle Plugin 3.5 and Gradle 5.6.
  • New configuration options that replace the now deprecated skipTestExecution and testTypes 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 tests
    • executeUnitTests: Same as executeTests except that this only affects the unit tests
    • includeAndroidTestResults: When true include results from instrumented Android tests into the coverage report
    • includeUnitTestResults : When true include results from unit tests into the coverage report

1.1.2

31 Jul 20:28
b5f230a
Compare
Choose a tag to compare

Official support for Android Gradle Plugin 3.4 and Gradle 5.5.

1.1.1

02 Feb 00:39
77a7545
Compare
Choose a tag to compare
  • 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

02 Feb 09:45
3ecbe7d
Compare
Choose a tag to compare

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)

1.0.2

02 Feb 09:51
Compare
Choose a tag to compare

Bug fixes:

  • Kotlin class files not discovered for build variants with a variant.dirName that is different from variant.name (#3)