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:
topjohnwu
2024-07-04 00:02:42 -07:00
parent f90c548f27
commit 3e38b8fed1
223 changed files with 344 additions and 318 deletions

View File

@ -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"))