An android profile now builds a real Android application from the same sources as the desktop: the kryon tool scaffolds a droid/ Gradle project beside the application on the first build and assembles a debug APK with the NDK. The canonical host (android_run) drives the session over raylib's NativeActivity backend with the shared viewport policies; a generated NativeActivity reports insets, cutouts, IME state, density, dark mode and orientation through JNI natives written in Ziran, forwards soft-keyboard text through the session-owned input queue, and an unconsumed back key finishes the activity. Generation runs the whole Zi graph through ziran ir --project so application module names may repeat Kryon module names.
3.1 KiB
Kryon feature matrix
This table describes the maintained Ziran library and hosts. Kryon is
imported by a Ziran application; it is not a language or a built-in Ziran
runtime. Ziran owns compilation and portable .zib execution. See
ARCHITECTURE.md and BACKENDS.md for the
module and host boundaries.
Library packages
| Package | Ziran source | Native code generation | Package verification |
|---|---|---|---|
Core UI (src/ui) |
✅ .zi modules listed in modules.txt and two public import modules |
✅ C, C++, and Go generation in make |
✅ make test builds the library and runs source, saved .zir, and .zib behavior tests |
The generated C archive is a build output of Ziran source. Behavior tests use
Ziran hosts in tests/*_host.zi. Code generation verifies that a module lowers
for a target; it does not prove that every native host runs on that target.
Application hosts
| Backend | Implementation | Input and presentation verification | Current status |
|---|---|---|---|
| Terminal | src/backend/terminal_run.zi |
Private PTY project test covers ASCII, UTF-8, invalid input, and escape sequences | ✅ supported |
| Desktop | src/backend/desktop_run.zi |
Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input | ✅ supported on the tested Linux host |
| Raylib | src/backend/raylib_run.zi |
Private Xvfb project test covers image capture and input | ✅ supported on the tested Linux host |
| Libdraw | src/backend/libdraw_run.zi |
Private Xvfb project test covers capture and input | ✅ supported on the tested Linux host |
| Native Plan 9 libdraw | src/backend/libdraw_native.zi |
Display-free ABI fixture plus Taiji's private native source/saved-IR checks cover Rill screens, PNG/reference pixels, alpha composition, cache eviction, native images, and captures | 🧪 experimental provider used by Rill; held modifiers and a selectable run profile remain pending |
| Web Canvas | src/backend/canvas_run.zi |
Headless Chromium checks Canvas2D pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior | ✅ supported through Emscripten on the tested browser |
| Web DOM | src/backend/dom_run.zi |
Headless Chromium checks incremental updates, native Unicode editing, reorder focus, KSS, responsive sizing and browser accessibility | 🧪 hybrid host with opt-in native CSS layout for document widgets |
| Android | app src/main.zi + src/backend/android_run.zi |
tests/ziran_android_device_test.sh checks the device text, lifecycle, and inset protocol with the Java side stubbed; a manual emulator run verifies install, rendering, touch, and back |
✅ supported through NativeActivity with raylib OpenGL ES 2 |
The desktop, raylib, and libdraw project tests run separately with
make desktop-project-test, make raylib-project-test, and
make libdraw-project-test; they must use a private Xvfb display. CI runs
all three on every push in their own job. The Canvas2D and semantic DOM
project tests run in make test and launch only private headless Chromium.