examples/window_run_return: Enable on Android (#2321)

Android also supports `EventLoopExtRunReturn`.  The user will still have
to follow the README to turn this example into a `cdylib` and add the
`ndk_glue::main()` initialization attribute, though.
This commit is contained in:
Marijn Suijten 2022-06-13 16:40:21 +02:00 committed by GitHub
parent 9e6f666616
commit 6b5b570b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,8 @@
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
target_os = "openbsd",
target_os = "android",
))]
fn main() {
use std::{thread::sleep, time::Duration};
@ -59,7 +60,7 @@ fn main() {
}
}
#[cfg(any(target_os = "ios", target_os = "android", target_arch = "wasm32"))]
#[cfg(any(target_os = "ios", target_arch = "wasm32"))]
fn main() {
println!("This platform doesn't support run_return.");
}