mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 09:02:50 +08:00
gradle: Allow storeType to be set (allows using .p12 files)
This commit is contained in:
parent
77c51d3ae7
commit
ce5d9a2ee8
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user