Review comments

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley
2023-10-08 09:38:51 -07:00
parent 999a1f8733
commit 49a315870e
8 changed files with 42 additions and 15 deletions

View File

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

View File

@@ -0,0 +1,3 @@
# android-xbuild-target
This is a crate that can be built via `x build` in order to simplify CI testing.

View File

@@ -0,0 +1,14 @@
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();
}