Skip to main content

Crate day_platform_android

Crate day_platform_android 

Source
Expand description

Shared Android JVM attachment, class loading, and checked Java bindings. Hosts initialize this runtime before calling services. Widget rendering belongs to day-toolkit-material.

Modules§

envelope
The part↔Java payload convention (docs/extending.md, “The Android bridging contract”): One byte[] crosses JNI per call, laid out as [0..4) status i32 BE · [4..8) meta-block length i32 BE · meta "k\nv\n…" UTF-8 · payload bytes. A negative status is a transport-error sentinel and the meta block carries the error message instead of pairs (each part defines its own sentinel values; day-part-http uses −1 timeout … −6 bad-url). Pure bytes, no JNI, so this compiles and tests on every host; DayEnvelope.java is the Java twin and the two encode identically.