From ce5d9a2ee816ff6f774a0dbfe034be38dc9a0194 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Tue, 21 Oct 2014 12:59:34 -0400 Subject: [PATCH] gradle: Allow storeType to be set (allows using .p12 files) --- bin/templates/project/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle index 974a19f1..b62a258f 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()) {