Skip to content

Commit 697918c

Browse files
committed
Don't break debug build (really now) if KEYSTORE is not set
1 parent 0c83710 commit 697918c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ android {
4848
}
4949
}
5050

51-
signingConfigs {
52-
release {
53-
if (System.getenv("KEYSTORE_FILE") != null) {
51+
if (System.getenv("KEYSTORE") != null) {
52+
signingConfigs {
53+
release {
5454
storeFile file(System.getenv("KEYSTORE"))
5555
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
5656
keyAlias "aard2-android"
@@ -60,8 +60,10 @@ android {
6060
}
6161

6262
buildTypes {
63-
release {
64-
signingConfig signingConfigs.release
63+
if (System.getenv("KEYSTORE") != null) {
64+
release {
65+
signingConfig signingConfigs.release
66+
}
6567
}
6668
}
6769
}

0 commit comments

Comments
 (0)