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

Commit 2885b2a

Browse files
committed
chore: fix R8 not working
1 parent 6b5b221 commit 2885b2a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,35 @@ android {
5454
compose = true
5555
}
5656
signingConfigs {
57-
println("keystore.file: ${property.keystore.file}")
5857
if (property.keystore.file.isNotBlank()) {
59-
val config by creating {
58+
create("config") {
6059
storeFile = file(File(rootDir, property.keystore.file))
6160
storePassword = property.keystore.password
6261
keyAlias = property.keystore.key.alias
6362
keyPassword = property.keystore.key.password
63+
enableV1Signing = true
64+
enableV2Signing = true
6465
enableV3Signing = true
6566
enableV4Signing = true
6667
}
6768
}
6869
}
6970
buildTypes {
70-
configureEach {
71+
all {
7172
signingConfig =
72-
if (signingConfigs.any { it.name == "config" }) signingConfigs.getByName("config") else signingConfigs.getByName(
73-
"debug"
74-
)
73+
if (signingConfigs.any { it.name == "config" })
74+
signingConfigs.getByName("config")
75+
else signingConfigs.getByName("debug")
7576
}
76-
val release by getting {
77+
release {
7778
isMinifyEnabled = true
7879
isShrinkResources = true
7980
proguardFiles(
8081
getDefaultProguardFile("proguard-android-optimize.txt"),
8182
"proguard-rules.pro"
8283
)
83-
isDebuggable = true
84-
isJniDebuggable = true
84+
isDebuggable = false
85+
isJniDebuggable = false
8586
multiDexEnabled = true
8687
}
8788
}

0 commit comments

Comments
 (0)