Measuring Android App Size in CI
Article Summary
Microsoft SwiftKey's team knows that reducing app size once isn't enough. The real challenge? Keeping it small with every code change.
The Microsoft Mobile Engineering team built an open-source CI extension that automatically measures Android app size changes on every pull request. It works with both GitHub Actions and Azure DevOps pipelines.
Key Takeaways
- Tracks 5 key metrics: APK size, install size, dex files, resources, and native libs
- Cross-platform compatible across Windows, Linux, and Mac CI runners
- Generates markdown summaries showing size deltas for each PR automatically
- Available free on GitHub Marketplace and Visual Studio Marketplace
Critical Insight
The extension prevents app bloat by catching size regressions before they reach production, making size monitoring a standard part of code review.