added files do build android?

This commit is contained in:
Schmarni
2023-10-27 19:53:59 +02:00
parent f867b1290b
commit c982f0f658
9 changed files with 48 additions and 3891 deletions

3878
examples/demo/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,14 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.11.3"
bevy_openxr = "0.0.1"
bevy_rapier3d = { git = "https://github.com/alexichepura/bevy_rapier", version = "0.22.0" }
bevy = { git = "https://github.com/bevyengine/bevy.git" }
# bevy = "0.11.3"
bevy_openxr = { git = "file:///home/schmarni/Code/adeptus_bevy_oxr", default-features = false}
bevy_rapier3d = { git = "https://github.com/Schmarni-Dev/bevy_rapier" }
color-eyre = "0.6.2"
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"

Binary file not shown.

View File

@@ -0,0 +1,25 @@
android:
runtime_libs:
- "runtime_libs"
manifest:
package: "org.bevyengine.demo_openxr_android"
application:
label: "Bevy Openxr Android"
theme: "@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen"
meta_data:
- name: "com.samsung.android.vr.application.mode"
value: "vr_only"
- name: "com.oculus.supportedDevices"
value: "quest|quest2|quest3"
activities:
- config_changes: "density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode"
launch_mode: "singleTask"
orientation: "landscape"
intent_filters:
- actions:
- "android.intent.action.MAIN"
categories:
- "com.oculus.intent.category.VR"
- "android.intent.category.LAUNCHER"
sdk:
target_sdk_version: 32

Binary file not shown.

View File

@@ -2,10 +2,10 @@ use bevy::{
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
log::info,
prelude::{
default, shape, App, Assets, Color, Commands, Component, Event, EventReader, EventWriter,
GlobalTransform, IntoSystemConfigs, IntoSystemSetConfigs, Mesh, PbrBundle, PostUpdate,
Query, Res, ResMut, Resource, SpatialBundle, StandardMaterial, Startup, Transform, Update,
With, Without,
bevy_main, default, shape, App, Assets, Color, Commands, Component, Event, EventReader,
EventWriter, GlobalTransform, IntoSystemConfigs, IntoSystemSetConfigs, Mesh, PbrBundle,
PostUpdate, Query, Res, ResMut, Resource, SpatialBundle, StandardMaterial, Startup,
Transform, Update, With, Without,
},
time::{Time, Timer},
transform::TransformSystem,
@@ -32,6 +32,7 @@ mod setup;
use crate::setup::setup_scene;
use bevy_rapier3d::prelude::*;
#[bevy_main]
fn main() {
color_eyre::install().unwrap();
@@ -79,8 +80,7 @@ fn main() {
bevy::time::TimerMode::Once,
)))
.add_systems(Update, request_cube_spawn)
.add_systems(Update, cube_spawner.after(request_cube_spawn))
;
.add_systems(Update, cube_spawner.after(request_cube_spawn));
//configure rapier sets
app.configure_sets(
@@ -175,7 +175,7 @@ fn cube_spawner(
mut materials: ResMut<Assets<StandardMaterial>>,
mut events: EventReader<SpawnCubeRequest>,
) {
for request in events.read() {
for request in events.iter() {
// cube
commands.spawn((
PbrBundle {