[Android] gradle: tools: switch to proguard-android-optimize.txt like the rest
Steve Lhomme
git at videolan.org
Wed Jun 10 09:28:00 UTC 2026
vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 9 10:22:27 2026 +0200| [8a4264cf0d0583028a0a94bc598c5860b8f501df] | committer: Steve Lhomme
gradle: tools: switch to proguard-android-optimize.txt like the rest
AGP complains if we use the non-optimized one. So we use the optimized one
and add -dontoptimize back. It should override the default from proguard-android-optimize.txt.
> https://code.videolan.org/videolan/vlc-android/commit/8a4264cf0d0583028a0a94bc598c5860b8f501df
---
application/tools/build.gradle | 2 +-
application/tools/proguard-rules.pro | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/application/tools/build.gradle b/application/tools/build.gradle
index ea567c113f..f1c96824ae 100644
--- a/application/tools/build.gradle
+++ b/application/tools/build.gradle
@@ -17,7 +17,7 @@ android {
buildTypes {
release {
minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
vlcBundle {
initWith release
diff --git a/application/tools/proguard-rules.pro b/application/tools/proguard-rules.pro
index f1b424510d..4c066ce5b2 100644
--- a/application/tools/proguard-rules.pro
+++ b/application/tools/proguard-rules.pro
@@ -19,3 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
+
+# FIXME from proguard-android.txt
+-dontoptimize
More information about the Android
mailing list