Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keepsafe/dexcount-gradle-plugin

A Gradle plugin to report the number of method references in your APK on every build.
https://github.com/keepsafe/dexcount-gradle-plugin

android gradle gradle-plugin

Last synced: about 1 month ago
JSON representation

A Gradle plugin to report the number of method references in your APK on every build.

Awesome Lists containing this project

README

        


Dexcount Gradle Plugin


a chart showing sample methods counts by package

[![Build Status](https://github.com/KeepSafe/dexcount-gradle-plugin/workflows/CI/badge.svg)](https://github.com/KeepSafe/dexcount-gradle-plugin/actions?query=workflow%3ACI)
[![Android Weekly](http://img.shields.io/badge/Android%20Weekly-%23174-2CB3E5.svg?style=flat)](http://androidweekly.net/issues/issue-174)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Dexcount%20Gradle%20Plugin-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1940)

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](https://keepsafe.github.io/dexcount-gradle-plugin/).

## Download

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.)

## Credits

The Java code from the `com.android.dexdeps` package is sourced from the [Android source tree](https://android.googlesource.com/platform/dalvik.git/+/master/tools/dexdeps/).
Inspired by Mihail Parparita's [`dex-method-counts`](https://github.com/mihaip/dex-method-counts) project, to whom much credit is due.

Copyright 2015-2023 Keepsafe Software, Inc