restructure signing config
This commit is contained in:
parent
5f5f4ca190
commit
b0d83ae4b9
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,6 +9,7 @@ src/playstore/res/values/gcm.xml
|
||||||
build/
|
build/
|
||||||
captures/
|
captures/
|
||||||
gradle.properties
|
gradle.properties
|
||||||
|
signing.properties
|
||||||
# Ignore Gradle GUI config
|
# Ignore Gradle GUI config
|
||||||
gradle-app.setting
|
gradle-app.setting
|
||||||
|
|
||||||
|
|
20
build.gradle
20
build.gradle
|
@ -86,21 +86,21 @@ android {
|
||||||
playstore
|
playstore
|
||||||
free
|
free
|
||||||
}
|
}
|
||||||
if (project.hasProperty('mStoreFile') &&
|
|
||||||
project.hasProperty('mStorePassword') &&
|
|
||||||
project.hasProperty('mKeyAlias') &&
|
if(new File("signing.properties").exists()) {
|
||||||
project.hasProperty('mKeyPassword')) {
|
Properties props = new Properties()
|
||||||
|
props.load(new FileInputStream(file("signing.properties")))
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
storeFile file(mStoreFile)
|
storeFile file(props['keystore'])
|
||||||
storePassword mStorePassword
|
storePassword props['keystore.password']
|
||||||
keyAlias mKeyAlias
|
keyAlias props['keystore.alias']
|
||||||
keyPassword mKeyPassword
|
keyPassword props['keystore.password']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes.release.signingConfig = signingConfigs.release
|
buildTypes.release.signingConfig = signingConfigs.release
|
||||||
} else {
|
|
||||||
buildTypes.release.signingConfig = null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|
Loading…
Reference in a new issue