configuring-r8-for-compose - Configure R8 for Jetpack Compose releases
Configure R8 full mode and resource shrinking for Compose while limiting keep rules to verified reflective consumers.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure release minification
- Enable resource shrinking
- Use Compose consumer rules
- Identify reflective keep needs
- Run missing-rule reports
- Retrace release crashes
- Analyze APK contents
- Measure release performance
Inputs
- Compose application
- Release build configuration
- R8 build output
- Release crash stack
- APK analysis results
- Macrobenchmark results
Outputs
- Configured release build
- Shrunk APK
- Missing-rules report
- Retraced crash stack
- APK size comparison
- Release performance measurements
Requirements
- AGP 8.0 or later
- Buildable release variant
- Kotlin 2.0 or later
- Compose compiler plugin
- Android build permissions
- R8 retrace tooling
