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

This commit is contained in:
Andrew Grieve 2014-10-21 12:59:34 -04:00
parent 77c51d3ae7
commit ce5d9a2ee8

View File

@ -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()) {