Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 61 additions & 85 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ proptest = { version = "1.9.0", default-features = false, features = ["std"] }
quote = { version = "1.0.37", default-features = false }
rand = { version = "0.10.1", default-features = false, features = ["std", "std_rng", "thread_rng"] }
regex = { version = "1.12.2", default-features = false }
reqwest = { version = "0.13.1", default-features = false }
reqwest = { version = "0.13.3", default-features = false }
rmp-serde = { version = "1.3.0", default-features = false }
ruma = { version = "0.15.1", features = [
"client-api-c",
Expand Down
4 changes: 1 addition & 3 deletions bindings/matrix-sdk-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ uniffi = { workspace = true, features = ["tokio"] }

[target.'cfg(target_os = "android")'.dependencies]
paranoid-android = { version = "0.2.2", default-features = false }
# Needed for `rustls-platform-verifier`. Newer versions aren't compatible with it.
jni = "0.21.1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need this for the Android bindings:

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `jni`
 --> bindings/matrix-sdk-ffi/src/platform/android_platform.rs:3:5
  |
3 | use jni::{
  |     ^^^ use of unresolved module or unlinked crate `jni`
  |
  = help: if you wanted to use a crate named `jni`, use `cargo add jni` to add it to your `Cargo.toml`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and we can't upgrade to jni 0.22.x because jvm-getter doesn't support it 🫠

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too bad... 😭

I guess this will have to wait? Unless we can replace jvm-getter with something else?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's anything to replace it with... We could either contribute to it by updating their code so they use jni 0.22.x or maybe include the contents of the crate's lib.rs and android.rs files in the FFI layer and fix the incompatibilities there.

@poljar , @Hywan : WDYT?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Status update: An PR was opened to attempt to update upstream: gobley/jvm-getter#14.

# Used to access the credential storage on Android
rustls-platform-verifier = "0.6.2"
rustls-platform-verifier = "0.7.0"
# Needed for intializing and keeping the JavaVM reference around
once_cell = "1.21.4"
# Gobley's jvm-getter is used to get a JVM pointer from all Android versions
Expand Down
Loading