Skip to content

Commit

Permalink
chore: Implement app signing (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Apr 16, 2021
1 parent ba4db5c commit 072471e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,27 @@ android {
}
}

signingConfigs {
debug {}

if (project.hasProperty('signingKeystorePath')) {
release {
storeFile file(signingKeystorePath)
storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
keyAlias System.getenv("ANDROID_KEYSTORE_KEY_ALIAS")
keyPassword System.getenv("ANDROID_KEYSTORE_KEY_PASSWORD")
}
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

if (project.hasProperty('signingKeystorePath')) {
signingConfig signingConfigs.release
}
}
}
compileOptions {
Expand Down

0 comments on commit 072471e

Please sign in to comment.