Commit Graph
5 Commits
Author SHA1 Message Date
waozi 7293edf7e1 Match the Android codec artifact test to decode-only output
The Android renderer artifact declares WebP, dav1d AVIF and Opus archives,
with libaom reserved for AVIF encoding. Assert the three archives and their
licenses, and link the decode APIs.
2026-11-23 09:52:46 -03:00
waozi 05ab114885 Lock every test fixture against the canonical Gitea identities
Twenty-five Python test fixtures wrote manifests that followed GitHub
Ziran master and overrode ziran with the live checkout, so ziran lock
refused Kryon's checked package metadata (cursor-api-test stopped the
full suite this way). tests/toolchain.py now owns one fixture identity:
the exact Gitea Ziran the starter templates pin and this checkout's
Kryon revision. pinned() rewrites a fixture manifest's [toolchain] and
[dependencies.kryon] onto it, kryon_only() keeps a local toolchain
override out of ziran.local.toml, and kryon_test_project uses both
(package_overrides stays for packages under test). cursor-api-test and
desktop-codec-artifact-test pass with them.
2026-11-22 16:13:49 -03:00
waozi ae6f73b435 Decode Android scene textures with linked codecs 2026-11-17 19:59:25 -03:00
waoziandClaude Opus 5.5 4923381c88 Load the pictures an Android app ships from its APK on first use
Android Frame apps draw through Pixmap, which found only pictures already
registered, so every file picture showed "Missing image". Pixmap now asks
an optional picture source the first time it measures or draws an
unregistered path, once per missing path until invalidation or host
cleanup. pixmap_assets_android registers a source that reads the APK asset
through AAssetManager and decodes it, and the Frame host imports it, as
desktop Cairo loads pictures on first use.

Tests: the Android image services test covers lazy loading, caching, the
single lookup per missing path, retry after invalidation and cleanup. A
new device suite decodes a framework PNG through Android's real
AssetManager inside its VM and compares it with an independent decode;
tests/android_vm_device_test.py now runs it and the typeface suite. Frame
host tests link the codecs that apps link.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 17:23:44 -03:00
waoziandClaude Opus 5.5 e05146b3ba Host Android apps that run their own frame loop
kryon/android_runtime keeps NativeActivity lifecycle and input in the host
while the application's main owns its loop, widgets and pacing:
PollAndroidHost, BeginAndroidFrame and EndAndroidFrame present Pixmap's
device-pixel damage. The host calls the application's C main by symbol, so
generated C never declares main with Ziran's argument types. Pixmap's
RasterSetTransform and RasterPointFromPixels share one camera for painting
and input.

kryon/pixmap_assets_android decodes owned PNG, WebP and AVIF pictures on
first use, and kryon/pixmap_typefaces_android shapes text with Android Paint
and Canvas through the ordinary typeface_source capabilities.

The renderer-desktop artifact also builds Android ARMv7 and AArch64 codec
archives and the shared AVIF bridge, pinned to AVIF 2611e727.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 13:30:41 -03:00