mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
Separate core codebase into its own module
- Separate UI specific code and resources outside of the core application logic - Allow most of the code to move forward and use KSP for annotation processing and isolate rotton code that is stuck with databinding - Make full UI rewrite more feasible
This commit is contained in:
7
build.py
7
build.py
@ -490,7 +490,7 @@ def build_app(args):
|
||||
# build process. Copy the stub APK into output directory.
|
||||
build_type = "release" if args.release else "debug"
|
||||
apk = f"stub-{build_type}.apk"
|
||||
source = Path("app", "src", build_type, "assets", "stub.apk")
|
||||
source = Path("app", "core", "src", build_type, "assets", "stub.apk")
|
||||
target = config["outdir"] / apk
|
||||
cp(source, target)
|
||||
|
||||
@ -526,7 +526,10 @@ def cleanup(args):
|
||||
|
||||
if "java" in args.target:
|
||||
header("* Cleaning java")
|
||||
execv([gradlew, "app:clean", "app:shared:clean", "stub:clean"], env=find_jdk())
|
||||
execv(
|
||||
[gradlew, "app:clean", "app:core:clean", "app:shared:clean", "stub:clean"],
|
||||
env=find_jdk(),
|
||||
)
|
||||
rm_rf(Path("app", "src", "debug"))
|
||||
rm_rf(Path("app", "src", "release"))
|
||||
|
||||
|
Reference in New Issue
Block a user