Add signing config for faster testing
This commit is contained in:
parent
2434fe30f4
commit
d1f5986e39
2 changed files with 18 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -39,6 +39,7 @@ nb-configuration.xml
|
||||||
|
|
||||||
## Gradle
|
## Gradle
|
||||||
.gradle
|
.gradle
|
||||||
|
keystore.properties
|
||||||
gradle-app.setting
|
gradle-app.setting
|
||||||
|
|
||||||
## OS Specific
|
## OS Specific
|
||||||
|
|
|
@ -25,6 +25,23 @@ android {
|
||||||
targetCompatibility 1.8
|
targetCompatibility 1.8
|
||||||
sourceCompatibility 1.8
|
sourceCompatibility 1.8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional signingConfigs
|
||||||
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||||
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
def keystoreProperties = new Properties()
|
||||||
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
|
|
||||||
|
signingConfigs {
|
||||||
|
release {
|
||||||
|
keyAlias keystoreProperties['keyAlias']
|
||||||
|
keyPassword keystoreProperties['keyPassword']
|
||||||
|
storeFile file(keystoreProperties['storeFile'])
|
||||||
|
storePassword keystoreProperties['storePassword']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
buildTypes.release.signingConfig = signingConfigs.release
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
gradle.projectsEvaluated {
|
||||||
|
|
Loading…
Reference in a new issue