Run Iris examples on desktop and Android

This commit is contained in:
iris committed 2026-09-11 11:33:04 -04:00
1 parent df1290904b
commit 8218e84b62
26 files changed
+581 -205

No files matched your search

+4
View File
@@ -809,6 +809,10 @@ javac, d8, aapt2, jar, zipalign and apksigner. Gradle is not in the ordinary
path because Iris's fixed Java view host has no Maven/AAR dependency or
variant graph for it to manage. An application that later embeds Iris in a
larger Gradle project can use that project as the packaging authority instead.
`--example NAME` packages the example's sibling `android.rs` as the Android
`cdylib`; `desktop.rs` remains Cargo's example target and both import their
shared `lib.rs`. This keeps the same widget tree runnable on both platforms
without adding another crate or making shared content select its host.
The tool discovers and validates prerequisites but never installs an SDK,
NDK, JDK, system image or emulator. `cargo iris run` requires an explicit