mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-04 05:47:26 +00:00
agdk-cpal: Use cpal git master
I was mistaken recently, thinking that cpal's dev-dependency on ndk-glue was somehow being inherited by the example. Actually the real issue was that cpal 0.13.5 has a regular _dependency_ on ndk-glue, which is a much simpler explanation for why we were seeing a crash. This updates the example to just use the master branch of cpal, which we'll need until there is a new release of cpal.
This commit is contained in:
@@ -9,12 +9,14 @@ edition = "2021"
|
||||
log = "0.4"
|
||||
android_logger = "0.11.0"
|
||||
android-activity = { path="../../android-activity", features = ["game-activity"] }
|
||||
cpal = { version = "0.13" }
|
||||
cpal = "0.13"
|
||||
atomic_float = "0.1"
|
||||
anyhow = "1"
|
||||
|
||||
# We currently need to use cpal master which doesn't have ndk-glue as a dependency
|
||||
# and is also updated to ndk 0.7
|
||||
[patch.crates-io]
|
||||
cpal = { git = "https://github.com/rib/cpal", branch = "no-ndk-glue-dev-dependency" }
|
||||
cpal = { git = "https://github.com/RustAudio/cpal", commit = "9b7bb339650" }
|
||||
|
||||
[lib]
|
||||
name="main"
|
||||
|
||||
Reference in New Issue
Block a user