Owner:
Aman Kapoor
Scans all Android Gradle modules and their AAR/JAR dependencies at build time, producing JSON mapping files (module metadata, resource mapping, package mapping) that power per-LOB (Line-of-Business) APK size attribution in the ApkSize Analyzer CLI. Supports dynamic feature modules, functional unit grouping, and fine-grained overrides.
https://github.com/amank22/ApkSize-Analyzer/tree/main/android-gradle-plugin
Version 0.2.0 (latest)
Created 16 February 2026.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.amank22.module-size-analysis") version "0.2.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("io.github.amank22.module-size-analysis:io.github.amank22.module-size-analysis.gradle.plugin:0.2.0") }It can then be applied in the precompiled script plugin:plugins { id("io.github.amank22.module-size-analysis") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.amank22.module-size-analysis:io.github.amank22.module-size-analysis.gradle.plugin:0.2.0") } } apply(plugin = "io.github.amank22.module-size-analysis") - Applying plugins to all subprojects .