Skip to content

Commit

Permalink
feat: use local.properties file for signing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
razinj committed Jun 23, 2024
1 parent 9aa8804 commit cf8a4fc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ android {

signingConfigs {
release {
if (project.hasProperty('CONTEXT_LAUNCHER_UPLOAD_STORE_FILE')) {
def keystoreProperties = new Properties()
file("local.properties").withInputStream { keystoreProperties.load(it) }

if (keystoreProperties.containsKey('CONTEXT_LAUNCHER_UPLOAD_STORE_FILE')) {
project.logger.lifecycle('[!] Release upload keystore file found.')
storeFile file(CONTEXT_LAUNCHER_UPLOAD_STORE_FILE)
storePassword CONTEXT_LAUNCHER_UPLOAD_STORE_PASSWORD
keyAlias CONTEXT_LAUNCHER_UPLOAD_KEY_ALIAS
keyPassword CONTEXT_LAUNCHER_UPLOAD_KEY_PASSWORD
storeFile file(keystoreProperties['CONTEXT_LAUNCHER_UPLOAD_STORE_FILE'])
storePassword keystoreProperties['CONTEXT_LAUNCHER_UPLOAD_STORE_PASSWORD']
keyAlias keystoreProperties['CONTEXT_LAUNCHER_UPLOAD_KEY_ALIAS']
keyPassword keystoreProperties['CONTEXT_LAUNCHER_UPLOAD_KEY_PASSWORD']
} else {
project.logger.lifecycle('[X] Release upload keystore file not found.')
}
Expand Down

0 comments on commit cf8a4fc

Please sign in to comment.