Skip to content

Commit

Permalink
Add signing config to build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-stein committed Apr 6, 2021
1 parent 7a19e37 commit 8894ade
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,7 @@ ehthumbs.db
Thumbs.db

# Log Files
*.log
*.log

# Signing Certificates
signing/
15 changes: 12 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ android {
versionCode 1
versionName "0.1.0"

// Uncomment this to support vectors if min sdk is < 21
// vectorDrawables.useSupportLibrary = true

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

kapt {
Expand All @@ -30,11 +27,23 @@ android {
}
}

signingConfigs {
def keystoreProperties = new Properties()
file('../signing/keys.properties').withInputStream { keystoreProperties.load(it) }
release {
storeFile file('../signing/libzy-android-keystore.jks')
storePassword keystoreProperties.getProperty('libzyStorePassword')
keyPassword keystoreProperties.getProperty('libzyKeyPassword')
keyAlias keystoreProperties.getProperty('libzyKeyAlias')
}
}

buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}

debug {
Expand Down

0 comments on commit 8894ade

Please sign in to comment.