Skip to content

Commit d421a1c

Browse files
committed
fix: Improve release signing configuration in build.gradle.kts with error handling and logging
1 parent af68da7 commit d421a1c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

app/build.gradle.kts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,27 @@ android {
4545
val ksStorePassword = readSecret("SIGNING_KEY_STORE_PASSWORD")
4646
val ksKeyPassword = readSecret("SIGNING_KEY_PASSWORD")
4747

48-
if (!ksPath.isNullOrEmpty() && !ksAlias.isNullOrEmpty() && !ksStorePassword.isNullOrEmpty() && !ksKeyPassword.isNullOrEmpty()) {
49-
create("release") {
48+
create("release"){
49+
if (!ksPath.isNullOrEmpty() && !ksAlias.isNullOrEmpty() && !ksStorePassword.isNullOrEmpty() && !ksKeyPassword.isNullOrEmpty()) {
5050
storeFile = (ksPath as Any?)?.let { file(it) }
5151
storePassword = ksStorePassword
5252
keyAlias = ksAlias
5353
keyPassword = ksKeyPassword
54+
} else {
55+
println(
56+
"""
57+
58+
_ _ _____ _____ _ _ _____ _____ ______ ____ _ _ _____ _ __________ __
59+
| | | |/ ____|_ _| \ | |/ ____| | __ \| ____| _ \| | | |/ ____| | |/ / ____\ \ / /
60+
| | | | (___ | | | \| | | __ | | | | |__ | |_) | | | | | __ | ' /| |__ \ \_/ /
61+
| | | |\___ \ | | | . ` | | |_ | | | | | __| | _ <| | | | | |_ | | < | __| \ /
62+
| |__| |____) |_| |_| |\ | |__| | | |__| | |____| |_) | |__| | |__| | | . \| |____ | |
63+
\____/|_____/|_____|_| \_|\_____| |_____/|______|____/ \____/ \_____| |_|\_\______| |_|
64+
65+
66+
67+
""".trimIndent()
68+
)
5469
}
5570
}
5671
}

0 commit comments

Comments
 (0)