Skip to content

Commit 85e81f4

Browse files
Enable custom signing configuration in build.gradle.kts
Uncomment signingConfigs block and update release build type to use custom signing config.
1 parent 96fb848 commit 85e81f4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/app/build.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ android {
7373
experimentalProperties["android.experimental.enableGlobalSynthetics"] = true
7474

7575

76-
/* signingConfigs {
76+
signingConfigs {
7777
create("custom") {
7878
val keyStorePath = "${rootProject.projectDir}/signing/signing-key.jks"
7979
val keyStoreFile = file(keyStorePath)
@@ -87,15 +87,20 @@ android {
8787
keyPassword = signing_keyPassword
8888
}
8989
}
90-
*/
90+
9191
androidResources { generateLocaleConfig = true }
9292

9393
buildFeatures {
9494
aidl = true
9595
dataBinding = true
9696
}
9797

98-
release {
98+
buildTypes {
99+
debug {
100+
signingConfig = signingConfigs.getByName("custom")
101+
}
102+
103+
release {
99104
isShrinkResources = false
100105
signingConfig = signingConfigs.getByName("custom")
101106
}

0 commit comments

Comments
 (0)