Optimize release build APK size

please no new bugs prayge
This commit is contained in:
MM20
2022-02-08 21:41:26 +01:00
parent 7a4e1e716f
commit d6a005293e
5 changed files with 9 additions and 3 deletions
+1 -1
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
} }
+1
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")
} }
} }
+3 -1
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
-keep class com.google.** { *; }
+1
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")
} }
} }
+3 -1
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
-keep class com.microsoft.graph.requests.** { *; }