mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-02-21 09:13:16 +03:00
Chore: should ignore appcenter.key in foss build
This commit is contained in:
parent
c245fc6dfa
commit
eff310ac40
@ -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\"")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user