Skip to content

Commit 0c83710

Browse files
committed
Don't break debug build if KEYSTORE_FILE is not set
1 parent d368c65 commit 0c83710

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ android {
5050

5151
signingConfigs {
5252
release {
53-
storeFile file(System.getenv("KEYSTORE"))
54-
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
55-
keyAlias "aard2-android"
56-
keyPassword new String(System.console().readPassword("\n\$ Key password: "))
53+
if (System.getenv("KEYSTORE_FILE") != null) {
54+
storeFile file(System.getenv("KEYSTORE"))
55+
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
56+
keyAlias "aard2-android"
57+
keyPassword new String(System.console().readPassword("\n\$ Key password: "))
58+
}
5759
}
5860
}
5961

0 commit comments

Comments
 (0)