deps(rust): upgrade jni to 0.22.4#640
Conversation
Review:
|
Conflicts in wgbridge-rs/Cargo.toml and jni_bindings.rs came from master's independent daemon-attach fix for the detached-thread GlobalRef warning (c50fdae) landing after this branch. jni 0.22's attach_current_thread already attaches permanently with auto-detach on thread exit, so this branch's jni-0.22 code subsumes that fix. Kept master's newer android_logger 0.15 alongside jni 0.22. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Summary
jnidependency from 0.21.1 to 0.22.4EnvUnowned/ borrowedEnvAPIWhy
Dependabot PR #629 only changed the dependency and lockfile. jni 0.22 contains breaking API changes, so the Android Rust build failed in
:app:wgbridgeBuild. This PR includes the required source migration.Impact
No intended Java/Kotlin API or runtime behavior changes. Native callbacks remain globally referenced and Tokio worker threads remain permanently attached on first use.
Validation
cargo test— 18 passedcargo ndk ... check— armeabi-v7a, arm64-v8a, x86, and x86_64./gradlew --console=plain testGithubDebugUnitTest