mirror of
https://github.com/dzeiocom/OpenHealth.git
synced 2025-04-23 11:22:10 +00:00
fix: error when keystore is not available
This commit is contained in:
parent
5049c8afa4
commit
57eef94f31
@ -16,16 +16,19 @@ android {
|
||||
|
||||
create("release") {
|
||||
|
||||
val keystoreProperties = Properties().apply {
|
||||
load(rootProject.file("./keystore.properties").reader())
|
||||
}
|
||||
try {
|
||||
val keystoreProperties = Properties().apply {
|
||||
load(rootProject.file("./keystore.properties").reader())
|
||||
}
|
||||
|
||||
if (keystoreProperties.isNotEmpty()) {
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||
}
|
||||
} catch (e: Exception) {}
|
||||
|
||||
if (keystoreProperties.isNotEmpty()) {
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user