From 697918cb8dc305161a34382eabfb55a5d4217a2c Mon Sep 17 00:00:00 2001 From: Igor Tkach Date: Tue, 19 Aug 2014 23:57:33 -0400 Subject: [PATCH] Don't break debug build (really now) if KEYSTORE is not set --- build.gradle | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index ca3f4bb9..605c43ab 100644 --- a/build.gradle +++ b/build.gradle @@ -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" @@ -60,8 +60,10 @@ android { } buildTypes { - release { - signingConfig signingConfigs.release + if (System.getenv("KEYSTORE") != null) { + release { + signingConfig signingConfigs.release + } } } }