Richard van der Hoff
8f332fddc2
crypto-js: Make importCrossSigningKeys take strings ( #1843 )
...
Currently this takes a `CrossSigningKeyExport`, but that's not a class you can
construct from the JS side. Instead, let's just pass in the individual keys.
2023-05-02 09:42:16 +00:00
Florian Duros
4df887823b
Update bindings/matrix-sdk-crypto-js/README.md
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2023-05-02 11:35:50 +02:00
Florian Duros
b9920ab477
bindings: Fix Wasm conversion into base64
2023-05-02 11:35:44 +02:00
Mauro
87b938b8fe
ffi: Add timestamp field to NotificationItem
2023-05-02 11:16:43 +02:00
Mauro
034aa04076
ffi: Add is_read field to NotificationItem
2023-04-28 18:04:42 +02:00
Simon Farre
396e0a3567
Add "opaque interface declarations"
...
Using the #[derive(uniffi::Object)] on certain types make them not show up
in the .aar file when building for Android. Could not determine why that is,
but removing the derive macro, and adding the empty interface declarations
inside the UDL, makes them show up.
We can still use #[uniffi::export] and #[uniffi::constructor].
Signed-off-by: Simon Farre <simon.farre.cx@gmail.com >
2023-04-28 17:58:41 +02:00
Jonas Platte
7ef6accab8
base: Clean up sliding sync processing a bit
2023-04-28 13:36:37 +02:00
Jonas Platte
d7421b3f85
base: Clean up ephemeral event handling
...
Log deserialization failing, and visit all events (though there should
never be two receipt events for one room in a single sync response).
2023-04-28 13:36:37 +02:00
Jonas Platte
daf611b290
base: Add spans to some medium to large BaseClient methods
2023-04-28 13:36:37 +02:00
Kévin Commaille
640e74c76a
chore: Update Ruma
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-28 13:12:38 +02:00
Florian Duros
8ba80fc13a
matrix-sdk-crypto-js v0.1.0-alpha.8
2023-04-28 11:38:56 +02:00
Damir Jelić
e6f2f65ffa
Merge pull request #1838 from matrix-org/florianduros/feat/optional-unused-fallback-keys-js-bindings
...
JS Bindings: make `unused_fallback_keys` as optional in `machine.rs/receive_sync_changes`
2023-04-28 11:33:24 +02:00
Jonas Platte
cca8ac7aea
ci: Only save caches from main branch
...
Caches saved from a PR can't be loaded from other unrelated PRs, wasting
space and possibly getting older previously-saved caches evicted first.
2023-04-28 11:17:19 +02:00
Jonas Platte
4ee4198e83
ci: Remove build caching for infrequently used release workflows
2023-04-28 11:17:19 +02:00
Jonas Platte
b4faef7867
bindings: Use proc-macros for types no longer referenced in UDL
2023-04-28 11:07:47 +02:00
Jonas Platte
34d2a20b15
ffi: Use proc-macros for constructors
2023-04-28 11:07:47 +02:00
Jonas Platte
6b8ec09365
crypto-ffi: Use proc-macros for constructors
2023-04-28 11:07:47 +02:00
Jonas Platte
8aad6156bc
Upgrade UniFFI
2023-04-28 11:07:47 +02:00
Richard van der Hoff
fc384367ec
Update bindings/matrix-sdk-crypto-js/CHANGELOG.md
2023-04-27 20:00:21 +01:00
Richard van der Hoff
8a8c29a3b5
crypto-js: extend mark_request_sent to accept SigningKeysUploadResponses
...
Currently, we can't pass the response to a `SigningKeysUploadRequest` into
`mark_request_sent`, which apparently we should be able to do.
So, we need to make `SigningKeysUploadRequest` have a `type` like the other
`OutgoingRequest`s, and add support for `SigningKeysUploadResponse` to
`OwnedResponse`.
2023-04-27 19:57:31 +01:00
Jonas Platte
bafcf23a29
sdk: Use new_content of edits instead of content
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-27 19:08:28 +02:00
Florian Duros
75870dd607
Run clippy
2023-04-27 17:57:30 +02:00
Florian Duros
2de2a14ee6
Run rustfmt
2023-04-27 17:42:19 +02:00
Mauro
d919642dd6
ffi: Exposing register_notification_handler in bindings
2023-04-27 17:35:46 +02:00
Florian Duros
31b81cbf6a
Run prettier
2023-04-27 17:30:55 +02:00
Florian Duros
cea29dbea1
Update README.md
2023-04-27 17:07:00 +02:00
Florian Duros
c74ecc449e
Add yarn.lock file
2023-04-27 17:04:54 +02:00
Florian Duros
643bd328d7
Add typescript as devDependencies
2023-04-27 17:04:43 +02:00
Florian Duros
2b3d5e09e2
Update changelog
2023-04-27 17:02:53 +02:00
Florian Duros
404d5003f3
unused_fallback_keys is optional in machine.rs
2023-04-27 17:00:28 +02:00
Kévin Commaille
d54b4a1d5a
sdk: Use new_content of edits instead of content
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-27 16:02:40 +02:00
Ivan Enderlin
dbdfe560e1
doc: Fix examples.
2023-04-27 14:39:15 +02:00
Ivan Enderlin
cbfa134087
feat(sdk): Remove hacks for Sliding Sync ranges
...
feat(sdk): Remove hacks for Sliding Sync ranges
2023-04-27 14:35:05 +02:00
Ivan Enderlin
4b51a19564
chore: Clean up tests.
2023-04-27 14:26:51 +02:00
Ivan Enderlin
58bb2dc21e
chore: Fix PR feedbacks.
2023-04-27 14:16:48 +02:00
Ivan Enderlin
3a8b6696f7
test: Install SS proxy v0.99.2.
2023-04-27 14:07:39 +02:00
Ivan Enderlin
5e6720b63c
feat(ffi): SlidingSync::reset_lists returns a SlidingSyncError.
2023-04-27 10:53:16 +02:00
Ivan Enderlin
a719f35a3e
test: Use the latest Sliding Sync proxy version.
2023-04-27 10:21:04 +02:00
Ivan Enderlin
13088dff72
test: Use the latest Sliding Sync proxy version.
2023-04-27 10:02:50 +02:00
Ivan Enderlin
deeefdfe90
Revert "fix(sdk): Try to find a workaround for a bug in the SS Proxy."
...
This reverts commit f269202ece .
2023-04-27 09:03:12 +02:00
Kévin Commaille
6ca6a9a84a
Implement SQLite state store
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-26 17:51:11 +02:00
Kévin Commaille
4bf15a4694
base: Implement Clone for StateChanges
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-26 17:51:11 +02:00
Kévin Commaille
78655bd9e2
base: Allow to get RoomMemberships as a list of MembershipStates
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-26 17:51:11 +02:00
Kévin Commaille
91da155b55
sqlite: Change signatures of SqliteObjectExt methods
...
Allows to pass owned strings as well as static strings
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-26 17:51:11 +02:00
Jonas Platte
40272c5989
refactor: Move sqlite crypto store migrations in new subdirectory
2023-04-26 17:51:11 +02:00
Ivan Enderlin
3b9c98d1b1
Revert "fix(sdk): Try to find workarounds about the bug in SlidingSync Proxy."
...
This reverts commit bd6075f6b4 .
2023-04-26 17:31:47 +02:00
Ivan Enderlin
2032a9fbfb
test(sdk): Fix tests and examples.
2023-04-26 17:11:47 +02:00
Kévin Commaille
1a20733225
indexeddb: Avoid unnecessary clones when deserializing events
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-26 16:17:38 +02:00
Ivan Enderlin
576fac99db
feat(sdk): Update the FFI layer to latest commits.
2023-04-26 16:08:06 +02:00
Ivan Enderlin
4b70407bcd
feat(sdk): SlidingSyncBuilder implements Clone.
2023-04-26 16:05:03 +02:00