modified: .circleci/config.yml

modified:   android/app/build.gradle
This commit is contained in:
stonegate 2020-02-13 14:16:10 +08:00
parent 455d37b727
commit 6f39e5c746
2 changed files with 11 additions and 4 deletions

View File

@ -18,6 +18,9 @@ jobs:
name: Run the application tests
command: flutter test
- run: echo $ENCODED_KEYSTORE | base64 --decode >> ${HOME}/repo/keystore.jks
- run: echo 'export KEYSTORE=${HOME}/repo/keystore.jks' >> $BASH_ENV
- run:
name: Build the Android version
command: flutter build apk

View File

@ -54,10 +54,14 @@ android {
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
storeFile file(System.getenv("KEYSTORE") ?: "keystore.jks")
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
// keyAlias keystoreProperties['keyAlias']
// keyPassword keystoreProperties['keyPassword']
// storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
// storePassword keystoreProperties['storePassword']
}
}
buildTypes {