From 451e10e1dfd76e037d8565e0f516b587c62a2f7c Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 22 Jan 2017 10:30:55 +0100 Subject: [PATCH] simplify the signing config file --- app/build.gradle | 9 ++++----- signing.properties_sample | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8ab8c7843..8a31fd81d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,7 +32,7 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.4.5' + compile 'com.simplemobiletools:commons:2.4.6' compile 'joda-time:joda-time:2.9.1' compile 'com.facebook.stetho:stetho:1.4.1' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' @@ -56,12 +56,11 @@ def propFile = new File('signing.properties') if (propFile.canRead()) { props.load(new FileInputStream(propFile)) - if (props != null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') && - props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) { + if (props != null && props.containsKey('STORE_FILE') && props.containsKey('KEY_ALIAS') && props.containsKey('PASSWORD')) { android.signingConfigs.release.storeFile = file(props['STORE_FILE']) - android.signingConfigs.release.storePassword = props['STORE_PASSWORD'] + android.signingConfigs.release.storePassword = props['PASSWORD'] android.signingConfigs.release.keyAlias = props['KEY_ALIAS'] - android.signingConfigs.release.keyPassword = props['KEY_PASSWORD'] + android.signingConfigs.release.keyPassword = props['PASSWORD'] } else { println 'signing.properties found but some entries are missing' android.buildTypes.release.signingConfig = null diff --git a/signing.properties_sample b/signing.properties_sample index acf8fb9fc..6b9a34469 100644 --- a/signing.properties_sample +++ b/signing.properties_sample @@ -1,4 +1,3 @@ STORE_FILE=/path/to/your.keystore -STORE_PASSWORD=yourkeypass KEY_ALIAS=projectkeyalias -KEY_PASSWORD=yourkeypass +PASSWORD=yourkeypass