Ivan Enderlin
d703380f85
chore(ffi): Re-order methods.
2023-05-03 14:03:12 +02:00
Ivan Enderlin
cc365215c8
feat(sdk): Introduce SlidingSyncListBuilder::once_built.
...
`on_built` is a method that registers a closure. This closure is called
when a list is built by `SlidingSyncListBuilder::build`. It receives
a `SlidingSyncList` and returns a `SlidingSyncList`, the list can be
updated or returned as is. It allows to configure a `SlidingSyncList`
right after it's built. `SlidingSyncBuilder::build` is responsible to
finalize the configuration, and to build all the lists. Once they are
built, the state is restored from the cache. If one wants to configure
a list before the state is restored from the cache, `once_built` will
serve well.
2023-05-03 13:42:27 +02:00
Stefan Ceriu
2d464cf2f7
fix(ffi): Generate correct temporary file names for media attachments
2023-05-03 13:00:56 +02:00
Alfonso Grillo
9f3e4e809c
ffi: Expose power levels related APIs
2023-05-03 10:43:47 +00:00
Jonas Platte
dddec7e7ee
Revert "Add "opaque interface declarations""
...
This reverts commit 396e0a3567 .
2023-05-03 11:42:50 +02:00
Mauro
2f413af0a8
ffi: Correct timestamp value and remove is_read flag
...
The timestamp value of the Notification was not reliable since it was the
timestamp in which it was generated internally, not the timestamp of when the
event was sent, now we instead expose the `origin_server_ts` of the
TimelineEvent.
`is_read` is also very unreliable, so it's just removed for now.
2023-05-02 15:00:05 +00:00
Benjamin Bouvier
be41dcf300
Remove unused dependencies
2023-05-02 15:06:46 +02:00
Stefan Ceriu
17fd4dd5ca
ffi: Support sending image attachments through the timeline
2023-05-02 14:54:01 +02:00
Damir Jelić
9e21678ce3
Merge pull request #1846 from matrix-org/release-matrix-sdk-crypto-js-v0.1.0-alpha.8
...
matrix-sdk-crypto-js v0.1.0-alpha.8
2023-05-02 12:52:06 +02:00
Damir Jelić
b0ca52b203
Merge pull request #1839 from matrix-org/florianduros/tech/js-bindings-missing-dependencies-lockfile
...
JS Bindings: add typescript missing devDependencies and lockfile
2023-05-02 11:58:24 +02:00
Richard van der Hoff
584cd5963c
Merge branch 'main' into rav/signing_keys_upload_response
2023-05-02 10:54:52 +01:00
Florian Duros
61312e53d8
Merge branch 'main' into release-matrix-sdk-crypto-js-v0.1.0-alpha.8
2023-05-02 11:43:07 +02:00
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
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
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
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
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
Ivan Enderlin
58bb2dc21e
chore: Fix PR feedbacks.
2023-04-27 14:16:48 +02:00
Ivan Enderlin
5e6720b63c
feat(ffi): SlidingSync::reset_lists returns a SlidingSyncError.
2023-04-27 10:53:16 +02:00
Ivan Enderlin
576fac99db
feat(sdk): Update the FFI layer to latest commits.
2023-04-26 16:08:06 +02:00
Ivan Enderlin
f26b9fb66c
Merge branch 'main' into feat-sdk-sliding-sync-cancellation-token
2023-04-26 12:19:02 +02:00
Ivan Enderlin
770d50e2ce
Merge pull request #1822 from AndrewFerr/af/update-nodejs-version
...
Update supported Node.js versions
2023-04-26 08:37:20 +02:00
Kévin Commaille
e98fbfce9a
sdk: Allow to filter Common::members(_no_sync) by membership state
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-25 18:03:53 +02:00
Andrew Ferrazzutti
564549e8af
Update Node bindings' "engines"
...
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io >
2023-04-25 23:59:22 +09:00
Andrew Ferrazzutti
46f69f7efd
Update supported Node.js versions
...
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io >
2023-04-25 23:51:53 +09:00
Jonas Platte
c897f0ccaf
ffi: Print location for tracing events
2023-04-25 12:19:55 +02:00
Simon Farre
b105359b27
Expose fetch_event_details to FFI
...
Signed-off-by: Simon Farre <simon.farre.cx@gmail.com >
2023-04-24 20:50:06 +00:00
Ivan Enderlin
7e243c5a5b
Merge branch 'main' into fix-issue-1728
2023-04-24 19:46:56 +02:00
Ivan Enderlin
f4e577bbe0
feat(sdk): Remove SlidingSync::pop_list.
...
This method is used by nobody. It's safe to remove it.
2023-04-24 14:07:27 +02:00
Jonas Platte
e5f4bbdc47
Upgrade dependencies
2023-04-24 13:59:01 +02:00
Jonas Platte
e15e21a3d7
ffi: Use UniFFI proc-macros for SessionVerificationController type
2023-04-24 12:42:27 +02:00
Jonas Platte
3954cab2ab
ffi: Use UniFFI proc-macros for Room type
2023-04-24 12:42:27 +02:00
Jonas Platte
e1a727a27f
ffi: Use UniFFI proc-macros for some misellaneousc symbols
2023-04-24 12:42:27 +02:00