Skip to content

Commit 3a9383f

Browse files
Revert ndk-glue to 0.5 to synchronize with winit (#4916)
# Objective - Upgrading ndk-glue (our Android interop layer) desynchronized us from winit - This further broke Android builds, see #4905 (oops...) - Reverting to 0.5 should help with this, until the new `winit` version releases - Fixes #4774 and closes #4529
1 parent 1fcb7d0 commit 3a9383f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/bevy_asset/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ wasm-bindgen-futures = "0.4"
4040
js-sys = "0.3"
4141

4242
[target.'cfg(target_os = "android")'.dependencies]
43-
ndk-glue = { version = "0.6" }
43+
ndk-glue = { version = "0.5" }
4444

4545
[dev-dependencies]
4646
futures-lite = "1.4.0"

crates/bevy_internal/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ bevy_winit = { path = "../bevy_winit", optional = true, version = "0.8.0-dev" }
9898
bevy_gilrs = { path = "../bevy_gilrs", optional = true, version = "0.8.0-dev" }
9999

100100
[target.'cfg(target_os = "android")'.dependencies]
101-
ndk-glue = {version = "0.6", features = ["logger"]}
101+
# This version *must* be the same as the version used by winit,
102+
# or Android will break: https://github.com/rust-windowing/winit#android
103+
ndk-glue = {version = "0.5", features = ["logger"]}

0 commit comments

Comments
 (0)