Skip to content

Commit

Permalink
Update jni from 0.19 to 0.21 (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Mar 1, 2024
1 parent 70d65b5 commit 52a0188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -72,7 +72,7 @@ web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOption
oboe = { version = "0.6", features = [ "java-interface" ] }
ndk = { version = "0.8", default-features = false }
ndk-context = "0.1"
jni = "0.19"
jni = "0.21"

[[example]]
name = "android"
Expand Down
2 changes: 1 addition & 1 deletion src/host/oboe/android_media.rs
Expand Up @@ -13,7 +13,7 @@ pub const CHANNEL_OUT_STEREO: i32 = 12;

fn with_attached<F, R>(closure: F) -> JResult<R>
where
F: FnOnce(&JNIEnv) -> JResult<R>,
F: FnOnce(&mut JNIEnv) -> JResult<R>,
{
let android_context = ndk_context::android_context();
let vm = Arc::new(unsafe { JavaVM::from_raw(android_context.vm().cast())? });
Expand Down

0 comments on commit 52a0188

Please sign in to comment.