Skip to content
Snippets Groups Projects
Commit eff310ac authored by Kr328's avatar Kr328
Browse files

Chore: should ignore appcenter.key in foss build

parent c245fc6d
No related branches found
No related tags found
No related merge requests found
......@@ -47,13 +47,15 @@ android {
dimension = "premium"
versionNameSuffix = ".premium"
val appCenterKey = rootProject.file("local.properties").inputStream()
.use { Properties().apply { load(it) } }
.getProperty("appcenter.key", null)
if (buildFlavor == "premium") {
val appCenterKey = rootProject.file("local.properties").inputStream()
.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\"")
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment