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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
g-services/proguard-rules.pro
vendored
4
g-services/proguard-rules.pro
vendored
@ -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.** { *; }
|
||||||
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
ms-services/proguard-rules.pro
vendored
4
ms-services/proguard-rules.pro
vendored
@ -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.** { *; }
|
||||||
Loading…
x
Reference in New Issue
Block a user