Enable R8 minification and shrinking for release builds #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/enable-r8-obfuscation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sets isMinifyEnabled = true and isShrinkResources = true so the release
APK/AAB passes Google Play's ≥25% obfuscation requirement.
ProGuard keep rules added for the three things R8 cannot safely rename:
names must match JSON keys since Gson uses reflection
startup
Room, Retrofit, OkHttp, Compose, and WorkManager all ship their own
consumer ProGuard rules inside their AARs, so no manual rules are needed
for those libraries.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com