Skip to content

fix(android): use optimized ProGuard config for AGP 9 (#4281) - #4282

Open
Preeternal wants to merge 1 commit into
rnmapbox:mainfrom
Preeternal:main
Open

fix(android): use optimized ProGuard config for AGP 9 (#4281)#4282
Preeternal wants to merge 1 commit into
rnmapbox:mainfrom
Preeternal:main

Conversation

@Preeternal

Copy link
Copy Markdown

Summary

Replace the deprecated proguard-android.txt with proguard-android-optimize.txt in the Android release configuration.

Problem

Starting with AGP 9, getDefaultProguardFile('proguard-android.txt') is no longer supported, causing Android builds to fail during Gradle configuration.

Verification

Verified locally with:

  • React Native 0.87.0
  • AGP 9
  • Gradle 9.4.1

Fixes #4281.

@Preeternal
Preeternal requested a deployment to CI with Mapbox Tokens August 14, 2026 14:54 — with GitHub Actions Waiting
@Preeternal
Preeternal requested a deployment to CI with Mapbox Tokens August 14, 2026 14:54 — with GitHub Actions Waiting
@Preeternal
Preeternal requested a deployment to CI with Mapbox Tokens August 14, 2026 14:54 — with GitHub Actions Waiting
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.

Android build fails with AGP 9 because proguard-android.txt is no longer supported

1 participant