What problem does it solve?
Android apps often bloat due to redundant, overly broad, or unnecessary R8/ProGuard keep rules that block code shrinking and optimization, leading to larger download sizes and worse runtime performance.
Core Features & Use Cases
- Redundant Rule Detection: Flags keep rules for common libraries (AndroidX, Kotlin, Gson, Retrofit, Room) that are already covered by embedded library consumer rules, eliminating unnecessary bloat.
- Rule Quality Analysis: Identifies overly broad package-wide keep rules, inversion operator misuse, and subsuming rules that prevent R8 from optimizing large swathes of code.
- Reflection-Aligned Refinement: Suggests narrow, specific keep rules for code paths that rely on reflection, ensuring functionality is preserved while maximizing optimization potential.
- Use Case: An Android developer with an oversized release APK can use this skill to audit their ProGuard configuration, remove redundant rules, and shrink their app size without breaking existing functionality.
Quick Start
Use the r8-analyzer skill to review your Android project's ProGuard keep rules and receive a prioritized list of changes to reduce your app's final size.