{"repo":"twilio/apkscale","free":true,"listed":false,"github":"https://github.com/twilio/apkscale","clone":"git clone https://github.com/twilio/apkscale.git","description":"A Gradle plugin to measure the app size impact of Android libraries","language":"Kotlin","stars":105,"topics":["android","gradle-plugin","kotlin","android-libraries","android-library","android-development","android-sdk"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"apkscale A Gradle plugin to measure the app size impact of Android libraries. Requirements Android SDK Apkscale can only be applied within a com.android.library project. apkanalyzer must be in your machine's path Android Gradle Plugin 8.0.0+ Java 17 Usage Add the following to your project's buildscript section. Apply the plugin in your Android library project. Apkscale adds a measureSize task to your Android library module and, when run, scans the output directory of your library and measures the size of each .aar file present. Apkscale outputs the size report to a json file located at /apkscale/build/outputs/reports/apkscale.json . The json file contains an array of elements that provide a size report for each .aar file measured. Apkscale writes the size in a --human-readable format as specified by apkanalyzer. Reference the example below. The following demonstrates how to read the Apkscale output and convert it to a markdown table. Development Developing the plugin requires the Android SDK to be installed and apkanalyzer needs to be in your machine's path. The project can be imported into Intellij IDEA CE as a Gradle project. Publishing to Maven Local Reference the following snippet to publish the plugin to your local maven repository. Publishing to your local maven repository can be useful when validating changes directly in an Android library project. Implementation Apkscale builds two flavors of a mock Android application: one without the library and one with the library","default_branch":null,"files":null,"tree":[],"storefront":"/r/twilio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/twilio/apkscale/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}