Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
chore: fix R8 not working
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Feb 2, 2024
1 parent 6b5b221 commit 2885b2a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,34 +54,35 @@ android {
compose = true
}
signingConfigs {
println("keystore.file: ${property.keystore.file}")
if (property.keystore.file.isNotBlank()) {
val config by creating {
create("config") {
storeFile = file(File(rootDir, property.keystore.file))
storePassword = property.keystore.password
keyAlias = property.keystore.key.alias
keyPassword = property.keystore.key.password
enableV1Signing = true
enableV2Signing = true
enableV3Signing = true
enableV4Signing = true
}
}
}
buildTypes {
configureEach {
all {
signingConfig =
if (signingConfigs.any { it.name == "config" }) signingConfigs.getByName("config") else signingConfigs.getByName(
"debug"
)
if (signingConfigs.any { it.name == "config" })
signingConfigs.getByName("config")
else signingConfigs.getByName("debug")
}
val release by getting {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
isDebuggable = true
isJniDebuggable = true
isDebuggable = false
isJniDebuggable = false
multiDexEnabled = true
}
}
Expand Down

0 comments on commit 2885b2a

Please sign in to comment.