A Gradle plugin to report the number of method references in your APK on every build.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by benjamin-bader over 2 years ago
The dexcount
gradle configuration block now uses Gradle properties exclusively, as opposed to getFoo
and setFoo
functions. That means that your Groovy configuration code needs to change a bit:
dexcount {
// Instead of this,
runOnEachPackage true
// Do this
runOnEachPackage = true
}
Published by benjamin-bader about 4 years ago
build/outputs/dexcount/$variant/
, where $variant
is the name of the variant whose output was analyzed.Published by benjamin-bader about 4 years ago
A release candidate for 2.0.0; final release is blocked pending the final release of AGP 4.1.0.
BREAKING Raise minimum Gradle version to 6.0
BREAKING Raise minimum AGP version to 3.4.0
BREAKING Raise minimum JDK version to 1.8
BREAKING On AGP 4.1.0 and above, Dexcount tasks do not run automatically during a build and must be manually executed.
BREAKING Dexcount output layout on disk has changed; all output files now go in a directory named build/outputs/dexcount/$variant/
, where $variant
is the name of the variant whose output was analyzed.
Added support for AGP 4.1.0 (#305)
Added support for counting AAB files, AGP 4.1.0+ only (#309)
Fix: JvmStatic methods on Kotlin interface companion objects, in AARs (#311)
Fix: Properly publish Gradle Plugin DSL marker artifact (#333)
NOTE:
This is a super janky release. IT IS ONLY AVAILABLE ON THE GRADLE PLUGIN PORTAL. tl;dr Gradle's built-in maven publishing system is terrible and since dexcount 2.0.0 is coming soon, it's not worth the trouble to get it working for this minor hotfix.
The release itself contains only a hotfix to enable counting AARs using Java8+ features like static methods on interfaces.
Published by benjamin-bader almost 6 years ago
Published by benjamin-bader about 6 years ago
ADD:
CHANGE:
Published by benjamin-bader over 6 years ago
Fixes support for dex format version 038.
Published by benjamin-bader almost 7 years ago
Published by benjamin-bader over 7 years ago
uncapitalize()
, which doesn't exist in Groovy bundled with Gradle 3.5 and below (issues #179 and #185)