summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-09-23 15:57:33 +0200
committerParménides GV <parmegv@sdf.org>2014-09-23 15:57:33 +0200
commit184b064b669a41cba6f42dfc980551009e106710 (patch)
treea84fa82d069f300a72a4651d0e5ab2ac0c9a7db0
parentcfe800509413a00fa51f491574b25773ee20dffd (diff)
Check if there is a release signingConfig.
F-Droid strips the signingConfigs section from build.gradle, so buildTypes mustn't check if there is a release signing configuration.
-rw-r--r--app/build.gradle3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 822c7124..78f2f791 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -24,7 +24,8 @@ android {
buildTypes {
release {
//runProguard true
- signingConfig signingConfigs.release.isSigningReady() ? signingConfigs.release : signingConfigs.debug
+ if(signingConfigs.contains(release))
+ signingConfig signingConfigs.release.isSigningReady() ? signingConfigs.release : signingConfigs.debug
}
}