Skip to content

Commit

Permalink
Don't break debug build if KEYSTORE_FILE is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
itkach committed Aug 20, 2014
1 parent d368c65 commit 0c83710
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ android {

signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE"))
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
keyAlias "aard2-android"
keyPassword new String(System.console().readPassword("\n\$ Key password: "))
if (System.getenv("KEYSTORE_FILE") != null) {
storeFile file(System.getenv("KEYSTORE"))
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
keyAlias "aard2-android"
keyPassword new String(System.console().readPassword("\n\$ Key password: "))
}
}
}

Expand Down

0 comments on commit 0c83710

Please sign in to comment.