Skip to content

fix: Android support AGP9: proguard optimize - #340

Merged
cybex-dev merged 1 commit into
cybex-dev:masterfrom
steinv:fix/AGP_R8
Sep 28, 2026
Merged

cybex-dev merged 1 commit into
cybex-dev:masterfrom
steinv:fix/AGP_R8

Conversation

@steinv

@steinv steinv commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

The Android SDK ships two default rule sets:

  1. proguard-android.txt begins with -dontoptimize;
  2. proguard-android-optimize.txt is identical but omits that flag.

Modern Android builds use R8. Recent AGP/R8 turned getDefaultProguardFile('proguard-android.txt') from a tolerated call into a hard error. The line has been fine for a long time, it only surfaces once a consumer is on an AGP 9 to enforce this, so existing users won't see it until they update AGP.

@steinv steinv changed the title Support AGP9: proguard optimize fix: Android support AGP9: proguard optimize Sep 19, 2026
@cybex-dev

Copy link
Copy Markdown
Owner

Great PR - much appreciated!

@cybex-dev
cybex-dev merged commit f052238 into cybex-dev:master Sep 28, 2026
2 checks passed
@steinv
steinv deleted the fix/AGP_R8 branch September 28, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants