use props
This commit is contained in:
parent
5307617c90
commit
90f325e7fe
2 changed files with 8 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue