Skip to content

Commit

Permalink
change signingConfigs for codemagic
Browse files Browse the repository at this point in the history
  • Loading branch information
Turskyi committed Dec 9, 2023
1 parent 91eaa3e commit a068934
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,24 @@ android {
}
signingConfigs {
register("release") {
// if (System.getenv()["CI"] == "true") { // CI=true is exported by Codemagic
// storeFile = System.getenv()["CM_KEYSTORE_PATH"]?.let { file(it) }
// storePassword = System.getenv()["CM_KEYSTORE_PASSWORD"]
// keyAlias = System.getenv()["CM_KEY_ALIAS"]
// keyPassword = System.getenv()["CM_KEY_PASSWORD"]
// } else {
storeFile = file(
path = keystoreProperties["storeFile"] as? String
?: throw IllegalStateException("storeFile is missing or invalid"),
)
storePassword = keystoreProperties["storePassword"] as? String
?: throw IllegalStateException("storePassword is missing or invalid")
keyAlias = keystoreProperties["keyAlias"] as? String ?: throw IllegalStateException(
"keyAlias is missing or invalid"
)
keyPassword = keystoreProperties["keyPassword"] as? String
if (System.getenv()["FCI_BUILD_ID"] != null) { // FCI_BUILD_ID is exported by Codemagic
storeFile = System.getenv()["CM_KEYSTORE_PATH"]?.let { file(it) }
storePassword = System.getenv()["CM_KEYSTORE_PASSWORD"]
keyAlias = System.getenv()["CM_KEY_ALIAS"]
keyPassword = System.getenv()["CM_KEY_PASSWORD"]
} else {
storeFile = file(
path = keystoreProperties["storeFile"] as? String
?: throw IllegalStateException("storeFile is missing or invalid"),
)
storePassword = keystoreProperties["storePassword"] as? String
?: throw IllegalStateException("storePassword is missing or invalid")
keyAlias = keystoreProperties["keyAlias"] as? String ?: throw IllegalStateException(
"keyAlias is missing or invalid"
)
keyPassword = keystoreProperties["keyPassword"] as? String
?: throw IllegalStateException("keyPassword is missing or invalid")
// }
}
}
register("dev") {
storeFile = file(
Expand Down

0 comments on commit a068934

Please sign in to comment.