build: Enable R8 to significantly reduce apk size

Also disable obfuscation to maintain reproducible builds
This commit is contained in:
Nishant Mishra
2025-09-08 19:06:15 +05:30
parent 99cbb46dca
commit fd38d2768e
2 changed files with 5 additions and 2 deletions

View File

@@ -41,7 +41,8 @@ android {
buildTypes { buildTypes {
release { release {
isMinifyEnabled = false isMinifyEnabled = true
isShrinkResources = true
proguardFiles( proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
) )

View File

@@ -18,4 +18,6 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-dontobfuscate