mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-06-02 06:03:44 +02:00
Disable Kotlin for stub
We need to do it after switching to built-in Kotlin
This commit is contained in:
@@ -11,11 +11,10 @@ lsparanoid {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.topjohnwu.magisk"
|
namespace = "com.topjohnwu.magisk"
|
||||||
|
enableKotlin = false
|
||||||
|
|
||||||
val canary = !Config.version.contains(".")
|
|
||||||
val base = "https://github.com/topjohnwu/Magisk/releases/download/"
|
val base = "https://github.com/topjohnwu/Magisk/releases/download/"
|
||||||
val url = base + "v${Config.version}/Magisk-v${Config.version}.apk"
|
val url = base + "v${Config.version}/Magisk-v${Config.version}.apk"
|
||||||
val canaryUrl = base + "canary-${Config.versionCode}/"
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.topjohnwu.magisk"
|
applicationId = "com.topjohnwu.magisk"
|
||||||
@@ -27,14 +26,10 @@ android {
|
|||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-release.apk\"")
|
|
||||||
proguardFiles("proguard-rules.pro")
|
proguardFiles("proguard-rules.pro")
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
isShrinkResources = false
|
isShrinkResources = false
|
||||||
}
|
}
|
||||||
debug {
|
|
||||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-debug.apk\"")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
|||||||
Reference in New Issue
Block a user