mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Remove dynamic APK class and resource loading across :app, :shared, and :stub. Consolidate stub resources into :stub and remove stub obfuscation and encryption. - Merge :stub-res into :stub and delete the :stub-res module. - Delete DynLoad, DelegateComponentFactory, ClassLoaders, StubApplication, StubRootService, and dummy component classes. - Delete StubApk, DynamicClassLoader, and CompoundEnumeration from :shared. - Remove lsparanoid, stub component randomization, resource encryption, and Stub.kt from build-logic. - Remove stubVersion and STUB_VERSION tracking. - Simplify DownloadActivity to use direct resources and APKInstall. - Remove isRunningAsStub and stub-specific hooks across :core. Assisted-by: Gemini 4 Argon
36 lines
726 B
Kotlin
36 lines
726 B
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.topjohnwu.magisk"
|
|
enableKotlin = false
|
|
|
|
val base = "https://github.com/topjohnwu/Magisk/releases/download/"
|
|
val url = base + "v${Config.version}/Magisk-v${Config.version}.apk"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.topjohnwu.magisk"
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
buildConfigField("String", "APK_URL", "\"$url\"")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
proguardFiles("proguard-rules.pro")
|
|
isMinifyEnabled = true
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
setupAppCommon()
|
|
|
|
dependencies {
|
|
implementation(project(":shared"))
|
|
}
|