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 {
|
||||
namespace = "com.topjohnwu.magisk"
|
||||
enableKotlin = false
|
||||
|
||||
val canary = !Config.version.contains(".")
|
||||
val base = "https://github.com/topjohnwu/Magisk/releases/download/"
|
||||
val url = base + "v${Config.version}/Magisk-v${Config.version}.apk"
|
||||
val canaryUrl = base + "canary-${Config.versionCode}/"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.topjohnwu.magisk"
|
||||
@@ -27,14 +26,10 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-release.apk\"")
|
||||
proguardFiles("proguard-rules.pro")
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = false
|
||||
}
|
||||
debug {
|
||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-debug.apk\"")
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
|
||||
Reference in New Issue
Block a user