Skip to content

Commit 997e4de

Browse files
cjy0812lisonge
andauthored
perf: Apk Sign fullback (#1323)
* perf: Apk Sign fullback * Clean up signing configuration comments in build.gradle.kts Removed commented-out signing configuration management sections. --------- Co-authored-by: 二刺螈 <i@songe.li>
1 parent 917fa55 commit 997e4de

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ android {
9595
resValues = true
9696
}
9797

98-
val gkdSigningConfig = signingConfigs.create("gkd") {
99-
storeFile = file(project.properties["GKD_STORE_FILE"] as String)
100-
storePassword = project.properties["GKD_STORE_PASSWORD"].toString()
101-
keyAlias = project.properties["GKD_KEY_ALIAS"].toString()
102-
keyPassword = project.properties["GKD_KEY_PASSWORD"].toString()
98+
val gkdSigningConfig = if (project.hasProperty("GKD_STORE_FILE")) {
99+
signingConfigs.create("gkd") {
100+
storeFile = file(project.properties["GKD_STORE_FILE"] as String)
101+
storePassword = project.findProperty("GKD_STORE_PASSWORD")?.toString()
102+
keyAlias = project.findProperty("GKD_KEY_ALIAS")?.toString()
103+
keyPassword = project.findProperty("GKD_KEY_PASSWORD")?.toString()
104+
}
105+
} else {
106+
signingConfigs.getByName("debug")
103107
}
104108

105109
val playSigningConfig = if (project.hasProperty("PLAY_STORE_FILE")) {
@@ -295,4 +299,4 @@ dependencies {
295299
compileOnly(libs.loc.annotation)
296300

297301
implementation(libs.kevinnzouWebview)
298-
}
302+
}

0 commit comments

Comments
 (0)