mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-10 07:42:06 +00:00
Migrate to new endpoints
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user