feat(build): don't minify names in release builds

This commit is contained in:
rushiiMachine 2025-07-05 11:59:35 -07:00
parent 69e82dedc5
commit 7bfd654f2b
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
3 changed files with 7 additions and 11 deletions

View file

@ -73,11 +73,7 @@ android {
isShrinkResources = true
isCrunchPngs = true
signingConfig = signingConfigs.getByName("debug")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
"proguard-rules-staging.pro",
)
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}

View file

@ -1,2 +0,0 @@
# Keeps all class and field names for debugging
-keepnames class ** { *; }

View file

@ -35,10 +35,6 @@
# Keep class names of patching steps since they're used via reflection
-keepnames class com.aliucord.manager.patcher.steps.**
# Uncomment this to preserve the line number information for
# debugging stack traces.
-keepattributes SourceFile,LineNumberTable
# Repackage classes into the top-level.
-repackageclasses
@ -51,3 +47,9 @@
# Suppress missing class warnings
-dontwarn org.slf4j.impl.StaticLoggerBinder
# Keeps all class and field names for debugging
-keepnames class ** { *; }
# Preserve the line number information for debugging stack traces.
-keepattributes LineNumberTable