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
linphone-sdk-android/*.aar
app/release
keystore.properties

View file

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

4
keystore.properties Normal file
View file

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