Commit graph

470 commits

Author SHA1 Message Date
renovate[bot]
0c8a01d2cf
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v26.03.19 (#6411)
* fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v26.03.18

* Fix API breaks

* Add compatibility with rustls (#6367)

A new `rustls-platform-verifier-android` library has to be added to the project, it'll be called from Rust to get access to the certificates on Android.

Originally, this was supposed to be added as a local maven repo pointing to the rust crate that publishes the AAR, but that's just plain terrible (more details [here](https://github.com/rustls/rustls-platform-verifier#android).

Instead, what we can do is use a script that uses `cargo-download` to download the latest crate or a specified version, unzip it and add the `aar` file to the `:libraries:matrix:impl` module.

* Try fixing Sonar with local AAR files

* Remove `UserCertificatesProvider`: this is no longer needed after integrating rustls

* Added some docs for rustls and its `platform-verifier` library

* Upgrade SDK to `26.03.19`: this version contains a workaround that allows the app to use the same TLS verifier as before, fixing the Let's Encrypt issues we saw with some homeservers (like element.io)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-03-20 16:20:37 +01:00
Benoit Marty
13578aa09b Sync string again. 2026-03-16 14:54:06 +01:00
bmarty
299d5a9394 Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
ElementBot
73961b4940
Sync Strings (#6302)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-09 10:38:07 +01:00
ElementBot
cf479a8df0
Sync Strings from Localazy (#6269)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-02 14:54:50 +01:00
Benoit Marty
1e8bbedaf4 Fix release build. 2026-02-23 18:13:55 +01:00
Benoit Marty
360b3b3dd1 Fix tests. 2026-02-23 17:32:53 +01:00
Benoit Marty
503bbae530 Ensure that Element X can use the service from Element Classic.
Permission "im.vector.app.READ_DATA" is not necessary anymore.
2026-02-23 12:43:42 +01:00
Benoit Marty
20406ec0cf
QRCode login: treat not found error as expired error. (#6161)
Reorder some when cases.
2026-02-09 16:34:23 +01:00
ElementBot
7c95f824d5
Sync Strings from Localazy (#6155)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-02-09 16:30:57 +01:00
Benoit Marty
0311fc9f01 QRCode login: treat not found error as expired error.
Reorder some when cases.
2026-02-09 15:14:18 +01:00
Benoit Marty
6f0f315b7e Iterate on login error: add a cancel button that fully close the flow.
tom
2026-01-28 16:20:14 +01:00
ElementBot
3ab67a5e15
Sync Strings from Localazy (#6085)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-26 12:06:38 +01:00
Benoit Marty
f7a9fe1c2b
Merge pull request #6033 from element-hq/sync-localazy
Sync Strings
2026-01-19 20:56:53 +01:00
Benoit Marty
157709b7c3
Merge pull request #6016 from element-hq/feature/bma/fixFlakyTest
Attempt to fix flaky test.
2026-01-19 14:13:17 +01:00
bmarty
45ed8619dd Sync Strings from Localazy 2026-01-19 00:35:31 +00:00
Benoit Marty
f645922bd8 Rename the state flow. Also let stateFlow be a real val. 2026-01-15 15:20:48 +01:00
Benoit Marty
9687626792 Attempt to fix flaky test.
The test `on QR code data ready - calls the expected callback` sometimes fails on the CI with the following error:

androidx.concurrent.futures.CallbackToFutureAdapter$FutureGarbageCollectedException: The completer object was garbage collected - this future would otherwise never complete. The tag was: CameraX initInternal
2026-01-15 15:09:47 +01:00
Benoit Marty
6190980097 Signin with Element Classic WIP 2026-01-15 11:58:28 +01:00
ElementBot
aa4125bdc0
Sync Strings from Localazy (#5994)
Co-authored-by: jmartinesp <480955+jmartinesp@users.noreply.github.com>
2026-01-14 11:43:57 +00:00
ElementBot
46f6e811d5
Sync Strings from Localazy (#5971)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-05 13:57:09 +01:00
bmarty
7859d666a8 Sync Strings from Localazy 2025-12-29 00:19:01 +00:00
bmarty
96dc67162c Sync Strings from Localazy 2025-12-23 11:23:46 +01:00
Jorge Martin Espinosa
4f1fd33b47
Fix unverified account after account creation (#5914)
* Fix unverified account after account creation:

When we create an account either using OIDC or by importing a login and password one, we need to wait until the verification state is known (either verified or unverified).

The problem is the verification service will return incorrect values until the E2EE tasks are initialized in the SDK, even if we add the state listeners after doing so.

So what we can do is initialize the E2EE setup, discard any invalid verification state received while it's not initialized, and take only those received after it's initialized.

* Actually restore the `Client` in `RustMatrixAuthenticationService.importCreatedSession` so we don't need to use `clear` and have the navigation restore the client later:

This standarizes the way the login/registration flow works, always restoring/reusing the existing client instance
2025-12-19 12:55:34 +01:00
Benoit Marty
d7ace0d580 Add test on RustCheckCodeSender 2025-12-16 20:03:33 +01:00
ElementBot
ad881c303a
Sync Strings from Localazy (#5904)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-12-15 23:51:19 +01:00
Benoit Marty
56d7ced633 Cleanup 2025-12-11 17:23:34 +01:00
Benoit Marty
8a7e71b49e PermissionsEvents -> PermissionsEvent 2025-12-10 10:50:10 +01:00
bmarty
32d56ea92d Sync Strings from Localazy 2025-12-01 00:23:54 +00:00
Benoit Marty
b15c5507c5 Fix compilation issue in test 2025-11-21 16:22:33 +01:00
Benoit Marty
e475a969d7 Fix crash when clicking fast on back key on the Add account screen. 2025-11-21 15:51:11 +01:00
Benoit Marty
a9ae55703a Remove unused slidingSyncProxy from DB. 2025-11-18 15:58:22 +01:00
Benoit Marty
eb31505dc7 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty
f86431e663 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty
c4e0370f41 Copyright: run command uv run license-editor --repository ../element-x-android 2025-11-10 10:09:26 +01:00
Benoit Marty
8769b98862
Merge pull request #5698 from element-hq/feature/bma/handleEvent
Code consistency around view event handling
2025-11-10 09:36:04 +01:00
Benoit Marty
87e7c64d34 Fix test 2025-11-07 16:53:53 +01:00
Benoit Marty
f280b8962b Improve API of LoginHelper and AccountProviderDataSource 2025-11-07 16:53:52 +01:00
Benoit Marty
5e8f06221f Rename API 2025-11-07 16:53:51 +01:00
Benoit Marty
bd43d86ec5 Ensure that the current account provider is set when using a login deeplink. Fixes #5004 2025-11-07 16:53:50 +01:00
Benoit Marty
fe2a317aa7 Oups, thanks unit tests! 2025-11-07 14:11:37 +01:00
Benoit Marty
7ad9c8f687 Rename handleEvents to handleEvent 2025-11-07 12:21:43 +01:00
Benoit Marty
70e3e768aa Avoid usage of not() and add unit tests. 2025-11-07 10:18:45 +01:00
Benoit Marty
98792c9562 Improve error mapping 2025-11-07 10:08:14 +01:00
Benoit Marty
e12726f405 Improve error mapping 2025-11-07 09:52:04 +01:00
Benoit Marty
b61ce1b19c Create specific errors for Invalid or Unsupporte homeserver. 2025-11-07 09:42:06 +01:00
Benoit Marty
5b472fdc31 Use presenter test extension 2025-11-06 15:38:43 +01:00
Benoit Marty
fd0ef1ae7a Small cleanup 2025-11-06 15:38:41 +01:00
Benoit Marty
a9958505d3 Always let the user try what they have entered, to get an explicit error if they continue 2025-11-06 15:38:40 +01:00
Benoit Marty
e3ed75d19e Ensure user cannot select unsupported homeserver. In this case show the appropriate error (parity with iOS) 2025-11-06 15:38:39 +01:00