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