Skip to content

Migrate build scripts into Gradle build tasks - #3

Draft
AlphaKR93 wants to merge 4 commits into
feat/serializationfrom
feat/build-system
Draft

AlphaKR93 wants to merge 4 commits into
feat/serializationfrom
feat/build-system

Conversation

@AlphaKR93

Copy link
Copy Markdown
Member

No description provided.

AlphaKR93 and others added 4 commits November 22, 2026 09:26
Replace scripts/build-bootstrap-runtime.sh with typed, cacheable tasks in
buildSrc (clang compile, BusyBox and gpgv cross builds, ELF validation) that
feed generated assets. The NDK comes from AGP (ndkVersion), so the ABI
binaries are no longer committed. Output is byte-identical to the previous
script (arm64-v8a, armeabi-v7a); x86_64 BusyBox was already nondeterministic.

The namespace launcher source invariants move to
scripts/test-namespace-probe-invariants.sh, and build-all.sh is replaced by
the stageDebugApk task.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
policyChecks wraps the host-side scripts/test-*.sh in Exec tasks and is part
of check; the two checks that inspect built binaries depend on the generated
runtime assets. Three scripts that already failed before this change (they
still read the removed XML/Java UI) are left out with a TODO.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The workflow now runs one Gradle invocation (native runtime, policy checks,
lint, unit tests) instead of a per-script shell loop, and no longer needs
ANDROID_NDK_HOME. English and Korean build docs describe the new tasks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… stale UI tests to Compose

Move test scripts to scripts/tests/host (run on the build machine) and
scripts/tests/device (need adb). policyChecks now registers one Exec task per
scripts/tests/host/*.sh instead of a hardcoded list, and scripts that read
DAWNSHELL_BFU_ASSETS_DIR automatically depend on the native runtime build.

Rewrite test-dashboard-settings-ux, test-lifecycle-control-policy and
test-compatibility-policy against the Compose sources they had been pinning
as XML/Java, and enable them again.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@AlphaKR93
AlphaKR93 added this pull request to stack #4 November 22, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant