Pass our signing information to gradle by argument.
Changes from using environment variables that the world can see to arguments. So we don't have to expose our keys and aliases to people
This commit is contained in:
parent
89efec6109
commit
d85b8afe58
|
@ -61,12 +61,11 @@ android {
|
|||
|
||||
signingConfigs {
|
||||
release {
|
||||
if (System.getenv("KEYSTORE") != null)
|
||||
{
|
||||
storeFile file(System.getenv("KEYSTORE"))
|
||||
storePassword System.getenv("KEYSTORE_PASSWORD")
|
||||
keyAlias System.getenv("KEY_ALIAS")
|
||||
keyPassword System.getenv("KEY_PASSWORD")
|
||||
if (project.hasProperty('keystore')) {
|
||||
storeFile file(project.property('keystore'))
|
||||
storePassword project.property('storepass')
|
||||
keyAlias project.property('keyalias')
|
||||
keyPassword project.property('keypass')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue