Files
bevy_oxr/crates/bevy_openxr/examples/android/Cargo.toml

98 lines
2.9 KiB
TOML

[package]
name = "bevy_openxr_android"
version.workspace = true
edition.workspace = true
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy_mod_openxr.workspace = true
bevy_xr_utils.workspace = true
bevy_mod_xr.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"] }
zip = "2.1"
[lib]
name = "bevy_openxr_android"
crate-type = ["rlib", "cdylib"]
# This metadata is used by `cargo-apk` - `xbuild` uses the `manifest.yaml` instead.
[package.metadata.android]
package = "org.bevyengine.example_openxr_android"
build_targets = ["aarch64-linux-android"]
runtime_libs = "runtime_libs"
apk_name = "bevyopenxr"
# assets = "assets"
# res = "assets/android-res"
icon = "@mipmap/ic_launcher"
label = "Bevy Openxr Android"
strip = "strip"
# [package.metadata.android.application]
# icon = "@mipmap/ic_launcher"
# label = "Bevy Example"
[package.metadata.android.sdk]
target_sdk_version = 32
[package.metadata.android.application.activity]
theme = "@android:style/Theme.Black.NoTitleBar.Fullscreen"
config_changes = "density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode"
launch_mode = "singleTask"
orientation = "landscape"
resizeable_activity = false
[[package.metadata.android.uses_feature]]
name = "android.hardware.vr.headtracking"
required = true
[[package.metadata.android.uses_feature]]
name = "oculus.software.handtracking"
required = true
[[package.metadata.android.uses_feature]]
name = "com.oculus.feature.PASSTHROUGH"
required = true
[[package.metadata.android.uses_feature]]
name = "com.oculus.experimental.enabled"
required = true
[[package.metadata.android.uses_permission]]
name = "com.oculus.permission.HAND_TRACKING"
[[package.metadata.android.application.activity.intent_filter]]
actions = ["android.intent.action.MAIN"]
categories = [
"com.oculus.intent.category.VR",
"android.intent.category.LAUNCHER",
"org.khronos.openxr.intent.category.IMMERSIVE_HMD",
]
# !! 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"