Migrate to new endpoints

This commit is contained in:
topjohnwu
2021-03-05 05:09:25 -08:00
parent 851404205b
commit 15e27e54fb
7 changed files with 44 additions and 84 deletions

View File

@@ -5,13 +5,16 @@ plugins {
android {
val canary = !Config.version.contains(".")
val url = Config["DEV_CHANNEL"] ?: if (canary) null
else "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@${Config.version}/app-release.apk"
defaultConfig {
applicationId = "com.topjohnwu.magisk"
minSdkVersion(21)
versionCode = 1
versionName = Config.version
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
}
buildTypes {