Add the Android shell, APK build, bridge test, sweet config and CI

android/: HomeActivity (derived from the legacy MainActivity, same package
dev.ultra.launcher and class name as the Qt build so the default-home choice
carries over), Updater reduced to httpGet + PackageInstaller, RecentsService,
manifest and resources, the committed debug keystore. android/build.sh builds
the APK with aapt2, javac, d8, zipalign and apksigner (no Gradle).
tests/android-sim.cjs drives the page against a stub of window.Android.
.sweet.config.yml / .sweet.yml with moon.mod as the annotated version file.
CI: test job (moon test on js and wasm-gc, browser tests) and an apk job that
publishes a Gitea release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-23 01:08:35 +00:00
1 parent 637129aa4e
commit dccbfd7d86
24 files changed
+1571 -30

No files matched your search

-2
View File
@@ -231,7 +231,6 @@ pub(all) enum Msg {
Touch(dx~ : Double, dy~ : Double, ms~ : Int, home_top~ : Bool, list_end~ : Bool)
ReleaseFetched(String?)
VersionFetched(String?)
UpdateDeclined(Int)
NoticeDone(Int)
// ---- from handlers
Query(String)
@@ -292,7 +291,6 @@ pub(all) enum Effect {
QueryLimits(Int)
SaveHome(String)
SaveLastCheck(Int64)
SaveDeclined(Int)
/// Send the message after this many ms.
Delay(Int, Msg)
/// After this many ms, feed `Hold(token)` to `input` (the long-press timer).
-2
View File
@@ -81,7 +81,6 @@ pub(all) enum Effect {
QueryLimits(Int32)
SaveHome(String)
SaveLastCheck(Int64)
SaveDeclined(Int32)
Delay(Int32, Msg)
HoldTimer(Int32, Int32)
FetchRelease(String)
@@ -176,7 +175,6 @@ pub(all) enum Msg {
Touch(dx~ : Double, dy~ : Double, ms~ : Int32, home_top~ : Bool, list_end~ : Bool)
ReleaseFetched(String?)
VersionFetched(String?)
UpdateDeclined(Int32)
NoticeDone(Int32)
Query(String)
Clear
-2
View File
@@ -746,8 +746,6 @@ test "self-update: up to date is silent unless asked; declined builds are not of
s2.send(ReleaseFetched(Some(rel)))
s2.send(VersionFetched(Some("{\"versionCode\":11}")))
assert_true(s2.has_effect(InstallApk("u/a", 11)))
s2.send(UpdateDeclined(11))
assert_true(s2.has_effect(SaveDeclined(11)))
}
///|
-4
View File
@@ -605,10 +605,6 @@ fn step(m : Model, msg : Msg, fx : Array[Effect]) -> Unit {
}
}
}
UpdateDeclined(n) => {
m.declined = n
fx.push(SaveDeclined(n))
}
NoticeDone(gen) => if gen == m.notice_gen { m.notice = "" }
Query(q) => m.query = q
Clear => m.query = ""