Optimize release build APK size

please no new bugs prayge
This commit is contained in:
MM20 2022-02-08 21:40:39 +01:00
parent 7a4e1e716f
commit d6a005293e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
5 changed files with 9 additions and 3 deletions

View File

@ -35,7 +35,7 @@ android {
applicationIdSuffix = ".release" applicationIdSuffix = ".release"
postprocessing { postprocessing {
isRemoveUnusedCode = false isRemoveUnusedCode = true
isObfuscate = false isObfuscate = false
isOptimizeCode = false isOptimizeCode = false
} }

View File

@ -20,6 +20,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"
) )
consumerProguardFiles("proguard-rules.pro")
} }
} }

View File

@ -19,3 +19,5 @@
# 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
-keep class com.google.** { *; }

View File

@ -20,6 +20,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"
) )
consumerProguardFile("proguard-rules.pro")
} }
} }

View File

@ -19,3 +19,5 @@
# 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
-keep class com.microsoft.graph.requests.** { *; }