Jonas Platte
e6891addfb
refactor: Use workspace dependencies for vodozemac
2022-10-18 13:38:05 +02:00
Jonas Platte
f57b7782f4
refactor: Use workspace dependencies for ruma
2022-10-18 13:38:05 +02:00
Jonas Platte
e91cee7154
fix(sdk): Always send an access token for get_profile
2022-10-18 13:31:59 +02:00
Jonas Platte
5b46fa73e1
fix(sdk): Always send an access token for get_display_name
2022-10-18 11:19:32 +02:00
Jonas Platte
b309441dec
fix(sdk): Don't log the access token in HttpClient::send
2022-10-17 20:04:49 +02:00
Jonas Platte
391efcec12
feat(appservice): Return a concrete type from AppService::service
2022-10-17 17:03:37 +02:00
Jonas Platte
4e583bcb8a
chore: Exclude xtask from tarpaulin coverage collection
2022-10-17 15:38:42 +01:00
Benjamin Kampmann
5e621b7132
fix!: Switch to uniffi 0.21.0 and workspace-wide dependencies
...
Upgrade MSRV to 1.64, the first stable release to support workspace-wide depenendencies:
https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#cargo-improvements-workspace-inheritance-and-multi-target-builds
2022-10-17 15:38:04 +01:00
Benjamin Kampmann
ab796cb32c
ci(xtask): switch to using uniffi as a lib rather than globally installed binary
2022-10-17 15:38:04 +01:00
Richard van der Hoff
dd82e0b8fc
chore: Update bindings/README
2022-10-17 13:24:09 +00:00
Doug
7125730917
ci(xtask): Switch to xtask for swift; run swift tasks on macOS
...
Merge pull request #1023 from matrix-org/doug/swift-linux: Run Swift tests on macOS
2022-10-17 14:12:43 +02:00
Jonas Platte
db2771bd17
feat(bindings): New timeline API
2022-10-17 13:40:35 +02:00
Jonas Platte
95face4aa4
chore(bindings): Delete unused code left over from old timeline API
2022-10-17 13:40:35 +02:00
Jonas Platte
a7cb80df1b
refactor(appservice): Clean up implementation of user_id_is_in_namespace
2022-10-13 12:13:56 +02:00
ganfra
e7d5b44343
Kotlin bindings: add matrix-rust-sdk.aar file to sample
2022-10-12 18:24:30 +02:00
ganfra
47478702b2
Kotlin bindings: create build_sdk script
2022-10-12 18:24:30 +02:00
ganfra
648895e2b0
Kotlin bindings: add uniffi.toml
2022-10-12 18:24:30 +02:00
ganfra
c8bddea6e1
Kotlin bindings: update Cargo.toml for kotlin generation
2022-10-12 18:24:30 +02:00
ganfra
f42215180e
Kotlin bindings: create project with sample, crypto and sdk modules
2022-10-12 18:24:12 +02:00
Jonas Platte
1e77e91ec4
refactor(appservice): Replace warp with axum
2022-10-12 17:32:31 +02:00
Jonas Platte
95613be6c9
chore: Remove redundant cfg attribute
2022-10-12 17:32:31 +02:00
Jonas Platte
b83e6be01e
refactor(sdk): Use lower-level libraries for builtin SSO server
2022-10-12 17:32:31 +02:00
Damir Jelić
086b6127e2
feat: Improve the timeline example
2022-10-12 16:12:06 +02:00
Jonas Platte
54fd40d8f5
feat(sdk): Add new timeline API
2022-10-12 16:12:06 +02:00
Damir Jelić
67d968d4fa
refactor(crypto): Remove the device ID from the megolm v2 m.room.encrypted content
2022-10-12 14:37:05 +02:00
Damir Jelić
7e14857239
test(crypto): Test that megolm v2 key forwards work
2022-10-12 14:37:05 +02:00
Damir Jelić
2425cd99cf
fix(crypto): Introduce the proper megolm v2 forwarded room key content
2022-10-12 14:37:05 +02:00
Damir Jelić
7c97c27441
feat(crypto): Start sending out megolm v2 room key requests
2022-10-12 14:37:05 +02:00
Damir Jelić
cbadd90eff
feat(crypto): Start responding to megolm v2 room key requests
2022-10-12 14:37:05 +02:00
Jonas Platte
d18b57dcdd
refactor: Make use of as_ruma_api_error internally
2022-10-12 12:34:09 +02:00
Jonas Platte
23c5929cfa
feat(sdk): Add Error::as_ruma_api_error
2022-10-12 12:34:09 +02:00
Jonas Platte
7bfa622a57
feat(sdk): Add HttpError::as_ruma_api_error
2022-10-12 12:34:09 +02:00
Jonas Platte
f4e0cab11f
feat(sdk)!: Merge HttpError::UiaaError into HttpError::Api
2022-10-12 12:34:09 +02:00
Jonas Platte
f07735291e
Fix warnings from generated code
2022-10-10 19:24:56 +02:00
Anderas
d4e7076e1d
Compile Crypto FFI for MacOS
2022-10-10 18:59:25 +02:00
Jonas Platte
61e95abaf2
refactor: Use Box::default
...
… as suggested by clippy.
2022-10-10 18:52:59 +02:00
Damir Jelić
8763a2468c
fix(crypto): Take more data into account when comparing sessions
2022-10-10 15:20:25 +02:00
Damir Jelić
8f6e3033e3
fix(crypto): Check for existing room keys when receiving a new one.
...
Now that we're not scoping the room keys by the Curve25519 sender key
we're opening the door of multiple devices trying to insert the same
room key into our store.
This patch changes our logic so we only store room keys from an
m.room_key event if we don't have one already or if the new key is
a better version of the one we already have.
This mostly assumes that the first room key with a given session id
is coming from the creator of the room key.
2022-10-10 15:20:25 +02:00
Damir Jelić
2f94886663
refactor(crypto)!: Don't use the Curve25519 sender key to store room keys
2022-10-10 15:20:25 +02:00
Jonas Platte
8b728d4ada
ci: Pin typos version
...
Currently, master is broken: https://github.com/crate-ci/typos/issues/590
matrix-sdk-crypto-ffi-0.1.1
matrix-sdk-crypto-ffi-0.1.2
2022-10-06 17:27:55 +02:00
Jonas Platte
26faf0d4c0
feat(bindings): Add custom kotlin package name for crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
a3113bd125
refactor(bindings): Start using #[uniffi::export] for matrix-sdk-crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
a75d7171f8
refactor(bindings): Rename crypto-ffi UniFFI namespace
...
… from olm to matrix_crypto_ffi to match the lib name.
Names need to match for integration of UniFFI's proc-macro frontend.
2022-10-06 17:27:55 +02:00
Jonas Platte
c3eaa864dd
refactor(bindings): Unset custom lib name for crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
6a561c20e2
refactor(bindings): Use uniffi::export for most of ClientBuilder's API
2022-10-06 10:56:22 +02:00
Jonas Platte
0581b8a884
refactor: Derive Default for enums
2022-10-06 10:55:49 +02:00
Jonas Platte
bdfdaeb0ae
chore: Upgrade async-once-cell
2022-10-06 10:55:49 +02:00
Jonas Platte
c24c20f7f1
Raise MSRV to 1.62
2022-10-06 10:55:49 +02:00
Jonas Platte
6b3acf1bf7
chore(sdk): Use inline tables more in Cargo.toml
...
Makes the file a little more comprehensible.
2022-10-06 10:55:49 +02:00
Jonas Platte
822cdae8f3
chore(sdk): Only include derive_builder dependency for sliding-sync feature
2022-10-06 10:55:49 +02:00