Skip to content

Commit

Permalink
chore: test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed May 27, 2024
1 parent 56990d8 commit 1b7c4d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion buildSrc/src/main/kotlin/scripts/variants.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,17 @@ android {
if (enableSigning) {
signingConfigs {
maybeCreate(BuildTypes.RELEASE).apply {
storeFile = file(System.getenv("KEYSTORE_FILE_PATH_RELEASE"))
val keystorePath = System.getenv("KEYSTORE_FILE_PATH_RELEASE")
val isKeyStoreAvailable = File(keystorePath).exists()
check(isKeyStoreAvailable) {
"Key store not found in path '$keystorePath'. Make sure the path is correct."
}
// if (isKeyStoreAvailable) {
storeFile = file(keystorePath)
storePassword = System.getenv("KEYSTOREPWD_RELEASE")
keyAlias = System.getenv("KEYSTORE_KEY_NAME_RELEASE")
keyPassword = System.getenv("KEYPWD_RELEASE")
// }
}
maybeCreate(BuildTypes.DEBUG).apply {
storeFile = file(System.getenv("KEYSTORE_FILE_PATH_DEBUG"))
Expand Down

0 comments on commit 1b7c4d0

Please sign in to comment.