diff --git a/README.md b/README.md index a2dda6d..73e1856 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,3 @@ An in-progress crate for adding openxr support to Bevy without forking. ![image](https://github.com/awtterpip/bevy_openxr/assets/50841145/aa01fde4-7915-49b9-b486-ff61ce6d57a9) To see it in action run the example in `examples` with `cargo run --example xr`. - -## Quest -Running on Meta Quest can be done with https://github.com/rust-mobile/cargo-apk and requires disabling default features. -```sh -cargo apk run --example xr --release --no-default-features -``` diff --git a/examples/android/.gitignore b/examples/android/.gitignore new file mode 100644 index 0000000..d74eb91 --- /dev/null +++ b/examples/android/.gitignore @@ -0,0 +1,3 @@ +/target +/Cargo.lock +/runtime_libs diff --git a/examples/android/Cargo.toml b/examples/android/Cargo.toml index 1f5163d..ef9e36c 100644 --- a/examples/android/Cargo.toml +++ b/examples/android/Cargo.toml @@ -13,10 +13,10 @@ crate-type = ["staticlib", "cdylib"] [package.metadata.android] package = "org.bevyengine.example_openxr_android" build_targets = ["aarch64-linux-android"] -runtime_libs = "examples/libs" +runtime_libs = "runtime_libs" apk_name = "bevyopenxr" -assets = "assets" -res = "assets/android-res" +# assets = "assets" +# res = "assets/android-res" icon = "@mipmap/ic_launcher" label = "Bevy Openxr Android" strip = "strip" @@ -29,18 +29,9 @@ target_sdk_version = 32 # label = "Bevy Example" [dependencies] -anyhow = "1.0.75" -# ash = "0.37.3" +bevy_openxr = { path = "../.." } bevy = { git = "https://github.com/bevyengine/bevy.git" } openxr = { git = "https://github.com/Ralith/openxrs", features = ["mint"] } -mint = "0.5.9" - -wgpu = "0.17.1" -wgpu-core = { version = "0.17.1", features = ["vulkan"] } -wgpu-hal = "0.17.2" - -[dev-dependencies] -color-eyre = "0.6.2" [profile.release] lto = "fat" @@ -61,6 +52,16 @@ categories = [ "android.intent.category.LAUNCHER", ] +# !! IMPORTANT !! +# +# When creating your own apps, make sure to generate your own keystore, rather than using our example one! +# You can use `keytool` like so: +# keytool -genkey -v -keystore my-release-key.keystore -keyalg RSA -keysize 2048 -validity 10000 +# +# For more information on key signing and why it's so important, check out this article: +# https://developer.android.com/studio/publish/app-signing +# +# !! IMPORTANT !! [package.metadata.android.signing.release] path = "./hotham_examples.keystore" keystore_password = "chomsky-vigilant-spa" diff --git a/examples/android/README.md b/examples/android/README.md new file mode 100644 index 0000000..9ef2fd1 --- /dev/null +++ b/examples/android/README.md @@ -0,0 +1,6 @@ +# Bevy OpenXR Android example + +Running on Meta Quest can be done with https://github.com/rust-mobile/cargo-apk and requires disabling default features. +```sh +cargo apk run --release +``` \ No newline at end of file diff --git a/examples/android/hotham_examples.keystore b/examples/android/hotham_examples.keystore new file mode 100644 index 0000000..62623c4 Binary files /dev/null and b/examples/android/hotham_examples.keystore differ diff --git a/examples/android/src/lib.rs b/examples/android/src/lib.rs index 32483a3..d5501df 100644 --- a/examples/android/src/lib.rs +++ b/examples/android/src/lib.rs @@ -10,8 +10,6 @@ use bevy_openxr::DefaultXrPlugins; #[bevy_main] fn main() { - color_eyre::install().unwrap(); - App::new() .add_plugins(DefaultXrPlugins) .add_plugins(OpenXrDebugRenderer)