70 lines
2.0 KiB
TOML
70 lines
2.0 KiB
TOML
[package]
|
|
name = "bevy_openxr_android"
|
|
version = "0.1.0"
|
|
description = "Example for building an Android OpenXR app with Bevy"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "bevy_openxr_android"
|
|
crate-type = ["rlib", "cdylib"]
|
|
|
|
|
|
[dependencies]
|
|
bevy.workspace = true
|
|
bevy_oxr.path = "../.."
|
|
openxr = { workspace = true, features = ["mint"] }
|
|
|
|
# [profile.release]
|
|
# lto = "fat"
|
|
# codegen-units = 1
|
|
# panic = "abort"
|
|
|
|
# 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.application.activity.intent_filter]]
|
|
actions = ["android.intent.action.MAIN"]
|
|
categories = [
|
|
"com.oculus.intent.category.VR",
|
|
"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"
|