Optimize release build APK size
please no new bugs prayge
This commit is contained in:
parent
7a4e1e716f
commit
d6a005293e
@ -35,7 +35,7 @@ android {
|
|||||||
applicationIdSuffix = ".release"
|
applicationIdSuffix = ".release"
|
||||||
|
|
||||||
postprocessing {
|
postprocessing {
|
||||||
isRemoveUnusedCode = false
|
isRemoveUnusedCode = true
|
||||||
isObfuscate = false
|
isObfuscate = false
|
||||||
isOptimizeCode = false
|
isOptimizeCode = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
g-services/proguard-rules.pro
vendored
2
g-services/proguard-rules.pro
vendored
@ -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.** { *; }
|
||||||
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
ms-services/proguard-rules.pro
vendored
2
ms-services/proguard-rules.pro
vendored
@ -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.** { *; }
|
||||||
Loading…
x
Reference in New Issue
Block a user