A Gradle plugin to report the number of method references in your APK, AAR, or java module on every build. 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. When applied, dexcount-gradle-plugin will create one task per Android variant that you can execute to produce method-count reports. The tasks are named according the variant, in the format “count${variant}DexMethods”. In a typical app, that means there will be tasks named countDebugDexMethods and countReleaseDexMethods. Historically, these counting tasks were run by default on every build; this continues to be true for projects using versions of Android Gradle Plugin from 3.4.0 up until 4.1.0. Beginning with 4.1.0, this is no longer the case, and method counts must be manually requested.

Features

  • The plugin is available from the Gradle Plugin Portal
  • Snapshot builds are available from the Sonatype Snapshot Repository
  • Dexcount requires Java 11 or higher, Gradle 7.0 or higher
  • 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
  • Avoids the headache of eliminating methods or enabling multidex

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Dexcount Gradle Plugin

Dexcount Gradle Plugin Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Dexcount Gradle Plugin!

Additional Project Details

Programming Language

Java

Related Categories

Java Software Development Software

Registered

2023-02-21