A Gradle plugin to report the number of method references in your APK, AAR, or java module.
This helps you keep tabs on the growth of your app, with an eye to staying under the 65,536 method-reference limit, and avoiding the headache of eliminating methods or enabling multidex.
For more information, please see the website.
The plugin is available from the Gradle Plugin Portal under the ID com.getkeepsafe.dexcount
, and from Maven Central under the coordinates com.getkeepsafe.dexcount:dexcount-gradle-plugin:4.0.0
.
Snapshot builds are available from the Sonatype Snapshot Repository at https://oss.sonatype.org/content/repositories/snapshots
.
Dexcount requires Java 11 or higher, Gradle 7.0 or higher, and Android Gradle Plugin 7.0.0 or higher. (Building the plugin requires Java 17 or higher.)
The Java code from the com.android.dexdeps
package is sourced from the Android source tree.
Inspired by Mihail Parparita's dex-method-counts
project, to whom much credit is due.
Copyright 2015-2023 Keepsafe Software, Inc