Chore: should ignore appcenter.key in foss build
This commit is contained in:
@@ -47,6 +47,7 @@ android {
|
|||||||
dimension = "premium"
|
dimension = "premium"
|
||||||
versionNameSuffix = ".premium"
|
versionNameSuffix = ".premium"
|
||||||
|
|
||||||
|
if (buildFlavor == "premium") {
|
||||||
val appCenterKey = rootProject.file("local.properties").inputStream()
|
val appCenterKey = rootProject.file("local.properties").inputStream()
|
||||||
.use { Properties().apply { load(it) } }
|
.use { Properties().apply { load(it) } }
|
||||||
.getProperty("appcenter.key", null)
|
.getProperty("appcenter.key", null)
|
||||||
@@ -56,6 +57,7 @@ android {
|
|||||||
buildConfigField("String", "APP_CENTER_KEY", "\"$appCenterKey\"")
|
buildConfigField("String", "APP_CENTER_KEY", "\"$appCenterKey\"")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val signingFile = rootProject.file("keystore.properties")
|
val signingFile = rootProject.file("keystore.properties")
|
||||||
if (signingFile.exists()) {
|
if (signingFile.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user