Review comments

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley
2023-10-14 21:36:54 -07:00
parent 9382b7238c
commit d3657449ab
9 changed files with 11 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
[package]
name = "android-xbuild-target"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
crate_type = ["cdylib"]
[dependencies.winit]
version = "0.29.1-beta"
path = "../.."
features = ["android-native-activity"]

View File

@@ -0,0 +1,11 @@
use winit::platform::android::{activity::AndroidApp, EventLoopBuilderExtAndroid};
#[no_mangle]
fn android_main(app: AndroidApp) {
winit::event_loop::EventLoopBuilder::new()
.with_android_app(app)
.build()
.unwrap()
.run(|_, _| todo!())
.ok();
}