hello/hello.rs
1use {compo::prelude::*, compo_platform_loop::prelude::run,tracing::info};
2
3#[component]
4async fn hello() {
5 println!("Hello, world!");
6 info!("Hello, world!");
7}
8
9#[cfg(not(target_os = "android"))]
10fn main() {
11 run(hello);
12}
13
14#[cfg(target_os = "android")]
15fn main(vm: jni::JavaVM) {
16 run(vm, hello);
17}