Open source stub APK loader

Close #3537
This commit is contained in:
topjohnwu
2020-12-29 01:44:02 -08:00
parent 6b42db943d
commit 41a644afb9
14 changed files with 381 additions and 11 deletions

View File

@@ -3,12 +3,13 @@ plugins {
}
android {
val canary = !Config["appVersion"].orEmpty().contains(".")
val canary = !Config.appVersion.contains(".")
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
versionName = Config.appVersion
buildConfigField("int", "STUB_VERSION", "15")
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
}