-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix android build * fix path * save apps as artifacts * try patch for android * apply patches * update minimum android version * patch when running too * run on less different configs * release android build * don't switch to landscape * enable more devices * remove unsupported version
- Loading branch information
Showing
3 changed files
with
134 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
diff --git a/.github/start-mobile-example/specs/screenshot.js b/.github/start-mobile-example/specs/screenshot.js | ||
index 32417256d6..9dbc9e773b 100644 | ||
--- a/.github/start-mobile-example/specs/screenshot.js | ||
+++ b/.github/start-mobile-example/specs/screenshot.js | ||
@@ -5,7 +5,7 @@ describe('Running Bevy Example', () => { | ||
it('can take a screenshot', async () => { | ||
|
||
// Sleep to wait for app startup, device rotation, ... | ||
- await new Promise(r => setTimeout(r, 2000)); | ||
+ await new Promise(r => setTimeout(r, 20000)); | ||
|
||
// Take local screenshot | ||
await browser.saveScreenshot('./screenshot.png'); | ||
diff --git a/examples/mobile/src/lib.rs b/examples/mobile/src/lib.rs | ||
index e69a91b933..7add8e039b 100644 | ||
--- a/examples/mobile/src/lib.rs | ||
+++ b/examples/mobile/src/lib.rs | ||
@@ -5,6 +5,10 @@ use bevy::{ | ||
input::{gestures::RotationGesture, touch::TouchPhase}, | ||
log::{Level, LogPlugin}, | ||
prelude::*, | ||
+ render::{ | ||
+ settings::{Backends, RenderCreation, WgpuSettings}, | ||
+ RenderPlugin, | ||
+ }, | ||
window::{AppLifecycle, WindowMode}, | ||
}; | ||
|
||
@@ -30,6 +34,13 @@ fn main() { | ||
..default() | ||
}), | ||
..default() | ||
+ }) | ||
+ .set(RenderPlugin { | ||
+ render_creation: RenderCreation::Automatic(WgpuSettings { | ||
+ backends: Some(Backends::VULKAN), | ||
+ ..default() | ||
+ }), | ||
+ ..default() | ||
}), | ||
) | ||
.add_systems(Startup, (setup_scene, setup_music)) | ||
@@ -180,6 +191,7 @@ fn handle_lifetime( | ||
}; | ||
|
||
for event in lifecycle_events.read() { | ||
+ warn!("Lifecycle event: {:?}", event); | ||
match event { | ||
AppLifecycle::Idle | AppLifecycle::WillSuspend | AppLifecycle::WillResume => {} | ||
AppLifecycle::Suspended => music_controller.pause(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/.github/start-mobile-example/mobile.conf.js b/.github/start-mobile-example/mobile.conf.js | ||
index ed0cf8d90..3443c3f71 100644 | ||
--- a/.github/start-mobile-example/mobile.conf.js | ||
+++ b/.github/start-mobile-example/mobile.conf.js | ||
@@ -15,8 +15,7 @@ exports.config = { | ||
device: process.env.DEVICE || 'Samsung Galaxy S23', | ||
os_version: process.env.OS_VERSION || "13.0", | ||
app: process.env.BROWSERSTACK_APP_ID, | ||
- 'browserstack.debug': true, | ||
- orientation: 'LANDSCAPE' | ||
+ 'browserstack.debug': true | ||
}], | ||
|
||
logLevel: 'info', |