mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 03:20:46 -05:00
app: remove :stub module and build integration
Remove the :stub Android application module, its build-logic task integration, build.py stub building commands, and leftover stub hooks in :core. - Delete app/stub/ and its 60 tracked files (activity, networking, and localized string resources) - Remove :stub from app/settings.gradle.kts - Remove stubTask and stub.apk syncing in Setup.kt - Remove build_stub, stub subparser, and stub APK copying in build.py - Simplify RootUtils by removing unused stub parameter and constructor - Remove unused -keep rule for App constructor in proguard-rules.pro - Update README.MD to remove stub string references Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -166,7 +166,6 @@ fun Project.setupCoreLib() {
|
||||
variant.sources.resources
|
||||
?.addGeneratedSourceDirectory(syncResources, SyncWithDir::outputFolder)
|
||||
|
||||
val stubTask = tasks.getByPath(":stub:transform${variantCapped}Apk")
|
||||
val syncAssets = tasks.register("sync${variantCapped}Assets", SyncWithDir::class) {
|
||||
outputFolder.set(layout.buildDirectory.dir("$variantName/assets"))
|
||||
into(outputFolder)
|
||||
@@ -177,10 +176,6 @@ fun Project.setupCoreLib() {
|
||||
include("util_functions.sh", "boot_patch.sh", "addon.d.sh",
|
||||
"app_functions.sh", "uninstaller.sh", "module_installer.sh")
|
||||
}
|
||||
from(stubTask) {
|
||||
include { it.name.endsWith(".apk") }
|
||||
rename { "stub.apk" }
|
||||
}
|
||||
filesMatching("**/util_functions.sh") {
|
||||
filter {
|
||||
it.replace(
|
||||
|
||||
Reference in New Issue
Block a user