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