fdroid: build: Use System.getenv instead of keystoreProperties

Reference:
https://github.com/stonega/tsacdop/blob/master/android/app/build.gradle
This commit is contained in:
Calcitem 2021-05-05 04:19:31 +08:00
parent cf50266211
commit 74cf4f5207
1 changed files with 8 additions and 4 deletions

View File

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