Add signing config for faster testing

This commit is contained in:
Torsten Grote 2019-06-03 15:51:58 -03:00
parent 2434fe30f4
commit d1f5986e39
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

@ -39,6 +39,7 @@ nb-configuration.xml
## Gradle ## Gradle
.gradle .gradle
keystore.properties
gradle-app.setting gradle-app.setting
## OS Specific ## OS Specific

View file

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