Skip to content

fix: AGP 9.0 no longer supports proguard-android.txt - #87

Merged
robingenz merged 1 commit into
capacitor-community:masterfrom
harryadel:codex/agp9-proguard-file
Apr 16, 2026
Merged

robingenz merged 1 commit into
capacitor-community:masterfrom
harryadel:codex/agp9-proguard-file

Conversation

@harryadel

Copy link
Copy Markdown
Contributor

Summary

Switch the Android library release config to getDefaultProguardFile("proguard-android-optimize.txt").

Why

Android Gradle Plugin 9 rejects proguard-android.txt because it bundles -dontoptimize. This causes project configuration to fail during Android Studio / Gradle project sync.

Validation

  • local Gradle sync on a downstream app using this plugin now gets past project configuration under Gradle 9.3.1 / AGP 8.13.0

@robingenz robingenz changed the title Use AGP 9 compatible default ProGuard file fix: AGP 9.0 no longer supports proguard-android.txt Apr 16, 2026
@robingenz
robingenz merged commit e707399 into capacitor-community:master Apr 16, 2026
2 checks passed
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