deps: Bump jni-rs to 0.22 (#44322)

Update jni-rs to 0.22, the main changes involve the introduction of
`with_env` within native methods, and updating uses of
`attach_current_thread`, which now requires a closure passed to it.
Callback object is now stored inside a `OnceLock`, since it would crash
when it was deleted, probably once a `WakeupCallback` was dropped:
```
JNI DETECTED ERROR IN APPLICATION: JNI ERROR (app bug): jobject is an invalid global reference: 0x2fc6 (deleted reference at index 382)
```
Also update android-activity and rustls-platform-verifier.

Testing: We don't have android tests in CI, manual testing is required
Fixes: Part of #40979

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
Gae24
2026-04-23 13:55:29 +02:00
committed by GitHub
parent 0ea42bc774
commit e2f17e0d28
5 changed files with 568 additions and 533 deletions

View File

@@ -87,7 +87,7 @@ webdriver_server = { workspace = true }
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.15"
jni = "0.21.1"
jni = "0.22"
[target.'cfg(not(target_os = "android"))'.dependencies]
backtrace = { workspace = true }

File diff suppressed because it is too large Load Diff