Use keystore in project

This commit is contained in:
txyyh committed 2022-05-20 23:23:14 +08:00
1 parent 41192ea7f5
commit c89d42f368
3 files changed
+13 -14

No files matched your search

+6 -14
View File
@@ -22,14 +22,12 @@ android {
} }
signingConfigs { signingConfigs {
if (localProperties.getProperty("storeFile") != null) {
sign { sign {
storeFile file(localProperties.getProperty("storeFile")) storeFile file(signStoreFile)
storePassword localProperties.getProperty("storePassword") storePassword signStorePassword
keyAlias localProperties.getProperty("keyAlias") keyAlias signkeyAlias
keyPassword localProperties.getProperty("keyPassword") keyPassword signkeyPassword
} }
}
} }
buildFeatures { buildFeatures {
@@ -76,17 +74,11 @@ android {
minifyEnabled true minifyEnabled true
shrinkResources true shrinkResources true
proguardFiles 'proguard-rules.pro' proguardFiles 'proguard-rules.pro'
if (localProperties.getProperty("storeFile") != null) { signingConfig signingConfigs.sign
signingConfig signingConfigs.sign
}
} }
debug { debug {
applicationIdSuffix ".debug" applicationIdSuffix ".debug"
if (localProperties.getProperty("storeFile") != null) { signingConfig signingConfigs.debug
signingConfig signingConfigs.sign
} else {
signingConfig signingConfigs.debug
}
} }
} }
Binary file not shown.
+7
View File
@@ -21,3 +21,10 @@ android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.enableAppCompileTimeRClass=true android.enableAppCompileTimeRClass=true
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
# signing environment variable
signStoreFile=keystore/androidkey.jks
signStorePassword=000000
signkeyAlias=key0
signkeyPassword=000000