Skip to content

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

Merged
mfazekas merged 1 commit into
rnmapbox:mainfrom
Preeternal:main
Sep 21, 2026
Merged

mfazekas merged 1 commit into
rnmapbox:mainfrom
Preeternal:main

Conversation

@Preeternal

Copy link
Copy Markdown
Contributor

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.

@mfazekas mfazekas closed this Sep 21, 2026
@mfazekas mfazekas reopened this Sep 21, 2026
@mfazekas
mfazekas merged commit 1fa5b99 into rnmapbox:main Sep 21, 2026
6 of 12 checks passed

This branch was successfully deployed

1 active deployment
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

2 participants