Added release signing config

This commit is contained in:
Arty Bishop committed 2021-03-11 22:14:04 +00:00
1 parent 8134db90d6
commit cf41889017
2 files changed
+17

No files matched your search

+4
View File
@@ -38,6 +38,9 @@ captures/
# Keystore files # Keystore files
# Uncomment the following line if you do not want to check your keystore files in. # Uncomment the following line if you do not want to check your keystore files in.
#*.jks #*.jks
/*.properties
/keystore.properties
/app/keystore.jks
# External native build folder generated in Android Studio 2.2 and later # External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild .externalNativeBuild
@@ -59,3 +62,4 @@ fastlane/readme.md
/app/release/app-release.aab /app/release/app-release.aab
/app/release/app-release.apk /app/release/app-release.apk
/app/release/output-metadata.json /app/release/output-metadata.json
/app/release/
+13
View File
@@ -5,7 +5,19 @@ plugins {
id "dagger.hilt.android.plugin" id "dagger.hilt.android.plugin"
} }
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android { android {
signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
compileSdkVersion 30 compileSdkVersion 30
buildToolsVersion "30.0.3" buildToolsVersion "30.0.3"
@@ -20,6 +32,7 @@ android {
buildTypes { buildTypes {
release { release {
signingConfig signingConfigs.release
postprocessing { postprocessing {
removeUnusedCode true removeUnusedCode true
removeUnusedResources true removeUnusedResources true