android: Enable code minification

This commit is contained in:
Charles Lombardo 2023-04-15 00:09:30 -04:00 committed by bunnei
parent 921e6dddcc
commit d57ae50f17
5 changed files with 18 additions and 22 deletions

View file

@ -78,6 +78,12 @@ android {
// Signed by release key, allowing for upload to Play Store.
release {
signingConfig = signingConfigs.getByName("debug")
isMinifyEnabled = true
isDebuggable = false
proguardFiles(
getDefaultProguardFile("proguard-android.txt"),
"proguard-rules.pro"
)
}
// builds a release build that doesn't need signing
@ -86,7 +92,6 @@ android {
initWith(getByName("release"))
versionNameSuffix = "-debug"
signingConfig = signingConfigs.getByName("debug")
isMinifyEnabled = false
enableAndroidTestCoverage = false
isDebuggable = true
isJniDebuggable = true