From 6ce4b22b16aaa856cc7f5dd6a14c17576db7dfd5 Mon Sep 17 00:00:00 2001 From: Teemu Rautavalta Date: Sun, 5 Jan 2025 02:35:31 +0200 Subject: [PATCH] Update the Android example to use NativeActivity instead of GameActivity --- crates/bevy_openxr/examples/android/Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/bevy_openxr/examples/android/Cargo.toml b/crates/bevy_openxr/examples/android/Cargo.toml index cc00df3..4a1c6ed 100644 --- a/crates/bevy_openxr/examples/android/Cargo.toml +++ b/crates/bevy_openxr/examples/android/Cargo.toml @@ -8,8 +8,15 @@ publish = false [dependencies] bevy_mod_openxr.workspace = true -bevy = { workspace = true, default-features = true } bevy_xr_utils.workspace = true +bevy = { workspace = true, default-features = false, features = [ + # Bevy 0.15 made GameActivity the default which breaks Quest builds + # To use NativeActivity instead of GameActivity all of the features have to be listed manually + "android-native-activity", + "bevy_window", + "multi_threaded", + "tonemapping_luts", +] } [build-dependencies] reqwest = { version = "0.12", features = ["blocking"] }