ganfra
75bb44bebf
Add script to generate only crypto-ffi crate
2022-11-25 11:59:27 +01:00
ganfra
0504240878
Merge branch 'main' into ganfra/kotlin_bindings
2022-11-25 10:19:19 +01:00
Damir Jelić
3113f6698f
chore: Don't use the term check for signature verification
2022-11-22 13:21:33 +01:00
Damir Jelić
38c38bc9f0
feat!(bindings): Expose the improved result of the verify_backup method
2022-11-22 13:21:33 +01:00
Jonas Platte
fcb37b6962
feat: Support creating Timeline with initial items from sliding sync
...
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
2022-11-21 14:52:02 +01:00
Jonas Platte
c3aa03e486
chore: Add reldbg profile and use it for matrix-sdk-ffi iOS builds
2022-11-16 09:59:06 +01:00
Jonas Platte
e59acfe28c
refactor: Use let-else to remove boilerplate code
2022-11-15 14:57:46 +01:00
Jonas Platte
7d2865f004
refactor(bindings): Shorten is_transaction_id_valid method
2022-11-15 14:57:46 +01:00
Jonas Platte
826705c174
chore: Bump MSRV to 1.65
2022-11-15 14:57:46 +01:00
Benjamin Kampmann
882b206144
feat(xtask): build xcframework
...
* Move swift build scripts into xtask (#1201 )
* fix(ffi): use target_path from `cargo metadata` rather than guessing
* ci(ffi): install necessary target arch for build-framework test
* feat(xtask): copy to target without rsync.
2022-11-15 13:06:33 +01:00
Flix
fb8045b254
fix: Fix UDL or is_encrypted
2022-11-15 12:32:20 +01:00
Flix
43dd4452cd
fix: Check encryption state in intermediate rooms
2022-11-15 12:32:20 +01:00
ismailgulek
29aa9a78c3
feat(ffi): Expose file messages
...
Expose file messages (#1203 )
2022-11-14 15:56:38 +00:00
Jonas Platte
4dc0e0ef3c
chore: Upgrade Ruma
2022-11-14 15:01:53 +01:00
Benjamin Kampmann
078855b4c9
feat(ffi): logging support for android ( #1199 )
...
* split logger into platform specific implementations
* logging support for android
* use platform independent wrapper for uniffi:exports
* activate colors for ansi-terminals
2022-11-11 12:20:19 +00:00
ganfra
0901243440
Merge branch 'main' into ganfra/kotlin_bindings
2022-11-10 15:34:32 +01:00
ganfra
fc76cc443e
Fix build script
2022-11-10 15:34:00 +01:00
Richard van der Hoff
e45c57d8fe
feat(crypto-js): allow async load of webassembly ( #1198 )
...
It turns out that Google Chrome refuses to initialise the wasm via the
synchronous `WebAssembly.Module` constructor, complaining that it is too
big. To be fair, it has a point.
Anyway, that means we need to provide a way to load the wasm
asynchronously. So, we introduce an `initAsync()` function which applications
can call before they do anything else, to load the wasm in the background.
If the app *doesn't* call `initAsync()`, then we load the wasm synchronously
the first time a function that accesses the wasm is called.
2022-11-10 11:51:37 +00:00
Ivan Enderlin
2eefb3a090
fix(indexeddb) + feat(crypto-js): Releasing IDBDatabase so that we can delete them
...
fix(indexeddb) + feat(crypto-js): Releasing `IDBDatabase` so that we can delete them
2022-11-10 10:40:16 +01:00
Ivan Enderlin
6754defb9b
doc(crypto-js): Improve documentation of OlmMachine.close.
2022-11-10 10:21:48 +01:00
Ivan Enderlin
196dfaea03
test(crypto-js): Test OlmMachine.close + IndexedDB clean up.
2022-11-09 14:48:37 +01:00
Ivan Enderlin
f6496d01c7
feat(crypto-js): Add OlmMachine.close.
...
This new `OlmMachine.close` forces to drop/close the `OlmMachine` without
waiting on the JavaScript garbage collector to collect it.
`wasm-bindgen` generates the following JS glue code:
```js
close() {
const ptr = this.__destroy_into_raw();
wasm.olmachine_close(ptr);
}
```
And, `__destroy_into_raw` looks like this:
```js
__destroy_into_raw() {
const ptr = this.ptr;
this.ptr = 0;
OlmMachineFinalization.unregister(this);
return ptr;
}
```
It unregisters itself from the `FinalizationRegistry` correctly. We are
protected from a double-free.
2022-11-09 14:48:37 +01:00
Jonas Platte
ca515997f1
feat(bindings): Expose video messages in matrix-sdk-ffi
2022-11-09 14:45:31 +01:00
ismailgulek
26d690a21c
Fix clippy
2022-11-09 16:34:41 +03:00
ismailgulek
045d6647b2
feat(bindings): Add support for editing messages
2022-11-09 14:15:19 +01:00
ismailgulek
7f54e4592f
Expose video messages
2022-11-09 16:02:40 +03:00
ganfra
4899f98f7f
Merge main into ganfra/kotlin_bindings
2022-11-08 17:25:57 +01:00
Kévin Commaille
93be96c85c
feat(sdk): Add read marker logic to the timeline API
2022-11-08 13:16:09 +01:00
Jonas Platte
5b919fc9df
refactor: Fix clippy lints
2022-11-04 15:17:01 +01:00
Ivan Enderlin
5b25b8967c
feat(crypto-js): Encode the WASM as base64 for portability
...
feat(crypto-js): Encode the WASM as base64 for portability
2022-11-03 16:44:16 +01:00
Ivan Enderlin
e989bc2377
fix(crypto-js): scan_qr_code takes a reference to QrCodeScan.
2022-11-03 15:37:21 +01:00
Jonas Platte
28b44a7f03
refactor!: Rename restore_login to restore_session
2022-11-03 15:34:31 +01:00
Ivan Enderlin
265ac1f97b
chore(crypto-js): Configure a profiling profile for wasm-pack.
2022-11-03 14:59:22 +01:00
Ivan Enderlin
d044565caa
test(crypto-js): Keep qr.toBytes() local, to avoid weird GC collection.
2022-11-03 14:57:07 +01:00
Ivan Enderlin
aa7d225867
feat(crypto-js): Qr.to_bytes returns a Uint8ClampedArray.
2022-11-03 13:58:17 +01:00
Stefan Ceriu
af2de2d8ef
chore(ffi): Reduce the log level for some not so useful logs
2022-11-03 13:26:32 +01:00
Jonas Platte
a28a664302
refactor(bindings)!: Replace RestoreToken string with Session dictionary
2022-11-03 12:58:34 +01:00
Jonas Platte
c1423e9326
refactor(bindings)!: Remove is_guest
...
It's not used by anything and should be re-introduced in the main Rust
first if it's needed.
2022-11-03 12:58:34 +01:00
Jonas Platte
8bfc186595
feat(bindings): Add TimelineItemContent::as_unable_to_decrypt
2022-11-03 12:03:33 +01:00
Jonas Platte
4c4b1f3abc
refactor(bindings): Use uniffi proc-macros more in sdk-ffi
2022-11-03 09:48:41 +01:00
ganfra
4eedbfbc11
Merge branch 'main' into ganfra/kotlin_bindings
2022-11-02 19:06:07 +01:00
Richard van der Hoff
898265b257
Clean up build script
2022-11-02 17:22:00 +00:00
Richard van der Hoff
9d400a7494
fix JS syntax
2022-11-02 17:13:58 +00:00
Ivan Enderlin
a4ca6dbf38
!debug
2022-11-02 17:25:13 +01:00
Ivan Enderlin
bb96ab89f8
fix(crypto-js): Make build.sh cross-platform-ish.
2022-11-02 16:57:26 +01:00
Ivan Enderlin
28d4a69552
!fixup
2022-11-02 16:32:20 +01:00
Ivan Enderlin
6497d6d676
feat(crypto-js): Make scripts/build.sh compatible with macOS.
...
This patch also improves the “phrasing”, simplifies the code a little bit etc.
Small stuff.
2022-11-02 16:19:17 +01:00
Ivan Enderlin
2b4f4b17c3
chore: Update wasm-bindgen's ecosystem to latest versions.
2022-11-02 08:59:21 +01:00
Richard van der Hoff
0f104c7433
Fix unbase64 loading
2022-11-01 13:47:44 +00:00
Richard van der Hoff
ce03f016b9
Copy unbase64.js into the right place
2022-11-01 10:19:13 +00:00