cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [05/12] android commit: gradle: Allow storeType to be set (allows using .p12 files)
Date Fri, 24 Oct 2014 20:18:36 GMT
gradle: Allow storeType to be set (allows using .p12 files)


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/ce5d9a2e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/ce5d9a2e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/ce5d9a2e

Branch: refs/heads/unplug-whitelist
Commit: ce5d9a2ee816ff6f774a0dbfe034be38dc9a0194
Parents: 77c51d3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Oct 21 12:59:34 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Oct 21 12:59:34 2014 -0400

----------------------------------------------------------------------
 bin/templates/project/build.gradle | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ce5d9a2e/bin/templates/project/build.gradle
----------------------------------------------------------------------
diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle
index 974a19f..b62a258 100644
--- a/bin/templates/project/build.gradle
+++ b/bin/templates/project/build.gradle
@@ -195,6 +195,16 @@ def addSigningProps(propsFilePath, signingConfig) {
     signingConfig.keyPassword = props.get('keyPassword')
     signingConfig.storeFile = storeFile
     signingConfig.storePassword = props.get('storePassword')
+    def storeType = props.get('storeType')
+    if (!storeType) {
+        def filename = storeFile.getName().toLowerCase();
+        if (filename.endsWith('.p12') || filename.endsWith('.pfx')) {
+            storeType = 'pkcs12'
+        }
+    }
+    if (storeType) {
+        signingConfig.storeType = storeType
+    }
 }
 
 if (file('build-extras.gradle').exists()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message