{"id":20115558,"url":"https://github.com/mutualmobile/gradle-dexinfo-plugin","last_synced_at":"2025-08-21T14:11:11.224Z","repository":{"id":34389479,"uuid":"38316538","full_name":"mutualmobile/gradle-dexinfo-plugin","owner":"mutualmobile","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-21T19:16:22.000Z","size":179,"stargazers_count":71,"open_issues_count":0,"forks_count":5,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-04-14T18:05:09.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mutualmobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-30T15:15:20.000Z","updated_at":"2023-06-02T05:28:23.000Z","dependencies_parsed_at":"2022-09-14T06:01:07.072Z","dependency_job_id":null,"html_url":"https://github.com/mutualmobile/gradle-dexinfo-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutualmobile%2Fgradle-dexinfo-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutualmobile%2Fgradle-dexinfo-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutualmobile%2Fgradle-dexinfo-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutualmobile%2Fgradle-dexinfo-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mutualmobile","download_url":"https://codeload.github.com/mutualmobile/gradle-dexinfo-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224505611,"owners_count":17322638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T18:35:38.806Z","updated_at":"2024-11-13T18:35:39.442Z","avatar_url":"https://github.com/mutualmobile.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android dexinfo plugin \n\n[ ![Download](https://api.bintray.com/packages/mutualmobile/Android/gradle-dexinfo-plugin/images/download.svg) ](https://bintray.com/mutualmobile/Android/gradle-dexinfo-plugin/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20dexinfo%20plugin-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2148)\n\nThis Gradle plugin adds a new task to print out the dex method count of your Android projects without having to install separate tools.\n\nBased on [https://github.com/mihaip/dex-method-counts](https://github.com/mihaip/dex-method-counts)\n\n## Usage\n\nModify your build.gradle file to add a dependency to the plugin.\n\n    buildscript {\n        repositories {\n            jcenter()\n        }\n        dependencies {\n            classpath 'com.mutualmobile.gradle.plugins:dexinfo:0.2.0'\n        }\n    }\n\nApply the plugin after the 'com.android.application' or 'com.android.library' plugins\n\n    apply plugin: 'com.android.application'\n    apply plugin: 'com.mutualmobile.gradle.plugins.dexinfo'\n\nBuild your apk\n\n    \u003e ./gradlew -q assembleDebug\n\nRun the dexinfo task\n\n    \u003e ./gradlew -q dexinfoDebug\n\n## Sample output\n\n    \u003croot\u003e: 182 \n    butterknife: 182 \n      ButterKnife: 48 \n         Action: 1 \n         Finder: 22 \n            1: 3 \n            2: 3 \n            3: 3 \n         Finder[]: 1 \n         Injector: 2 \n      ImmutableList: 4 \n      InjectView: 1 \n      InjectViews: 1 \n      OnCheckedChanged: 1 \n      OnClick: 1 \n      internal: 99 \n         Binding: 1 \n         ButterKnifeProcessor: 22 \n         CollectionBinding: 12 \n            Kind: 5 \n            Kind[]: 1 \n         DebouncingOnClickListener: 7 \n            1: 2 \n      ...\n    \n    Overall method count: 182 \n      \n    BUILD SUCCESSFUL\n\n## Additional options\n\nAdd the following section to your build.gradle file to specify options\n\n    dexinfo {\n        maxDepth 2\n        packageFilter \"org.xmlpull\"\n    }\n\nWhere:\n\n    includeClasses (boolean)\n        Treat classes as packages and provide per-class method counts. One use-case is for protocol buffers where all\n        generated code in a package ends up in a single class\n\n    maxDepth (int)\n        Limit how far into package paths (or inner classes, with includeClasses) counts should be reported for.\n\n    packageFilter (String)\n        Only consider methods whose fullly qualified name starts with this prefix.\n\n    filter (String: all|defined_only|referenced_only)\n        Whether to count all methods (the default), just those defined in the input file, or just those that are\n        referenced in it. Note that referenced methods count against the 64K method limit too.\n\n## Debugging\n\nBuild and install the plugin to your local maven repository\n\n    ./gradlew build install\n\nAdd mavenLocal() to your Android projects build.gradle\n\n    buildscript {\n        repositories {\n            mavenLocal()\n            jcenter()\n        }\n    }\n\nExport debug options to GRADLE_OPTS\n\n    export GRADLE_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005\n\nRun gradle in your Android project\n\n    ./gradlew dexinfoDebug\n    \nCreate a \"Remote\" run configuration in IntelliJ and connect to the gradle process\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutualmobile%2Fgradle-dexinfo-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmutualmobile%2Fgradle-dexinfo-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutualmobile%2Fgradle-dexinfo-plugin/lists"}