Skip to content

Commit

Permalink
Don't break debug build (really now) if KEYSTORE is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
itkach committed Aug 20, 2014
1 parent 0c83710 commit 697918c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ android {
}
}

signingConfigs {
release {
if (System.getenv("KEYSTORE_FILE") != null) {
if (System.getenv("KEYSTORE") != null) {
signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE"))
storePassword new String(System.console().readPassword("\n\$ Keystore password: "))
keyAlias "aard2-android"
Expand All @@ -60,8 +60,10 @@ android {
}

buildTypes {
release {
signingConfig signingConfigs.release
if (System.getenv("KEYSTORE") != null) {
release {
signingConfig signingConfigs.release
}
}
}
}
Expand Down

0 comments on commit 697918c

Please sign in to comment.