Improved keystore properties

This commit is contained in:
Sylvain Berfini 2018-11-19 10:42:14 +01:00
parent 6b4a091051
commit 92e8c1c232
3 changed files with 13 additions and 4 deletions

1
.gitignore vendored
View file

@ -23,3 +23,4 @@ app/google-services.json
res/value-hi_IN res/value-hi_IN
linphone-sdk-android/*.aar linphone-sdk-android/*.aar
app/release app/release
keystore.properties

View file

@ -58,12 +58,16 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
signingConfigs { signingConfigs {
release { release {
storeFile file(RELEASE_STORE_FILE) storeFile file(keystoreProperties['storeFile'])
storePassword RELEASE_STORE_PASSWORD storePassword keystoreProperties['storePassword']
keyAlias RELEASE_KEY_ALIAS keyAlias keystoreProperties['keyAlias']
keyPassword RELEASE_KEY_PASSWORD keyPassword keystoreProperties['keyPassword']
} }
} }

4
keystore.properties Normal file
View file

@ -0,0 +1,4 @@
storePassword=
keyPassword=
keyAlias=
storeFile=bc-android.keystore