You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/11/07 19:58:03 UTC

[2/4] cordova-amazon-fireos git commit: gradle: Allow storeType to be set (allows using .p12 files)

gradle: Allow storeType to be set (allows using .p12 files)


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/0367d93b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/0367d93b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/0367d93b

Branch: refs/heads/master
Commit: 0367d93b9df156c137116fa03b3be1051b559aa6
Parents: 900db96
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Oct 21 12:59:34 2014 -0400
Committer: Ajitha <aj...@amazon.com>
Committed: Wed Oct 29 17:05:34 2014 +0530

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


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/0367d93b/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