You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/10/21 19:00:30 UTC
[7/8] android 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-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/4.0.x
Commit: ce5d9a2ee816ff6f774a0dbfe034be38dc9a0194
Parents: 77c51d3
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Oct 21 12:59:34 2014 -0400
Committer: Andrew Grieve <ag...@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