This commit is contained in:
Guilherme Gazzo 2017-11-03 18:43:20 -02:00
parent 3a048661e8
commit abfea9226a
No known key found for this signature in database
GPG Key ID: 1F85C9AD922D0829
2 changed files with 9 additions and 7 deletions

View File

@ -105,11 +105,13 @@ android {
}
signingConfigs {
release {
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(KEYSTORE)
storePassword KEYSTORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
}
}
}
splits {
abi {

View File

@ -10,8 +10,8 @@ dependencies:
pre:
# Install YARN
- node -v
- echo $KEYSTORE_BASE64 | base64 --decode | tee -a "./android/app/$KEYSTORE"
- echo -e "KEYSTORE=$KEYSTORE" > ./android/gradle.properties
- echo $KEYSTORE_BASE64 | base64 --decode > ./android/app/rocketchat-rn.keystore
- echo -e "KEYSTORE=$KEYSTORE" >> ./android/gradle.properties
- echo -e "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> ./android/gradle.properties
- echo -e "KEY_ALIAS=$KEY_ALIAS" >> ./android/gradle.properties
- echo -e "KEY_PASSWORD=$KEYSTORE_PASSWORD" >> ./android/gradle.properties