Skip to content

Fix deprecated proguard-android.txt for AGP 9+ compatibility#46

Open
VIXI0 wants to merge 1 commit into
AlwaysLoveme:mainfrom
VIXI0:patch-1
Open

Fix deprecated proguard-android.txt for AGP 9+ compatibility#46
VIXI0 wants to merge 1 commit into
AlwaysLoveme:mainfrom
VIXI0:patch-1

Conversation

@VIXI0
Copy link
Copy Markdown

@VIXI0 VIXI0 commented Mar 6, 2026

Replace getDefaultProguardFile('proguard-android.txt') with getDefaultProguardFile('proguard-android-optimize.txt') in android/build.gradle.

proguard-android.txt is no longer supported in AGP 9+ since it includes -dontoptimize, which prevents R8 from performing optimizations. This causes a build failure for projects using Android Gradle Plugin 9.x.

Replace getDefaultProguardFile('proguard-android.txt') with getDefaultProguardFile('proguard-android-optimize.txt') in android/build.gradle.

proguard-android.txt is no longer supported in AGP 9+ since it includes -dontoptimize, which prevents R8 from performing optimizations. This causes a build failure for projects using Android Gradle Plugin 9.x.
Copilot AI review requested due to automatic review settings March 6, 2026 02:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Android library Gradle configuration to avoid using a deprecated default ProGuard configuration file that can break builds on newer Android Gradle Plugin (AGP) versions.

Changes:

  • Switched getDefaultProguardFile('proguard-android.txt') to getDefaultProguardFile('proguard-android-optimize.txt') for the release build type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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