use props

This commit is contained in:
Alexey Kuznetsov 2018-11-24 14:48:13 +03:00
commit 90f325e7fe
2 changed files with 8 additions and 4 deletions

View file

@ -15,10 +15,10 @@ android {
}
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
storeFile file(prop('RELEASE_STORE_FILE')?:'none')
storePassword prop('RELEASE_STORE_PASSWORD')
keyAlias prop('RELEASE_KEY_ALIAS')
keyPassword prop('RELEASE_KEY_PASSWORD')
}
}
buildTypes {

View file

@ -25,3 +25,7 @@ task wrapper(type: Wrapper) {
task clean(type: Delete) {
delete rootProject.buildDir
}
def prop(String name) {
project.hasProperty(name) ? project.getProperty(name) : null
}