Commit Graph

334 Commits

Author SHA1 Message Date
Benoit Marty
bed7776674 Account Creation using a WebView 2024-09-16 12:24:47 +02:00
Jorge Martin Espinosa
03786c1fd2 Add forced logout flow when the proxy is no longer available (#3458)
* Add `MatrixClient.isSlidingSyncProxySupported` function

* Update localazy strings

* Modify `ErrorDialog` to have an `onSubmit` call, which will be used for the submit action.

Also make the title text optional and dismissing the dialog by tapping outside/going back configurable.

* Check if a forced migration to SSS is needed because the proxy is no longer available.

In that case, display the non-dismissable dialog and force the user to log out after enabling SSS.

* Enable native/simplified sliding sync by default.

* Refactor the login to make sure we:

1. Always try native/simplified sliding sync login first, if available.
2. Then, if it wasn't available or failed with an sliding sync not supported error, try with the proxy instead (either discovered proxy or forced custom one).

* Move logic to `LoggedInPresenter` and the UI to `LoggedInView`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-16 09:13:02 +00:00
Benoit Marty
523603380c Small update of the release script wording. 2024-09-10 10:35:06 +02:00
Jorge Martin Espinosa
8154aa3319 Add banner for optional migration to simplified sliding sync (#3429)
* Add banner for optional migration to native sliding sync

- Add `MatrixClient.isNativeSlidingSyncSupported()` and `MatrixClient.isUsingNativeSlidingSync` to check whether the home server supports native sliding sync and we're already using it.
- Add `NativeSlidingSyncMigrationBanner` composable to the `RoomList` screen when the home server supports native sliding sync but the current session is not using it.
- Add an extra logout successful action to the logout flow, create `EnableNativeSlidingSyncUseCase` so it can be used there.

* Update screenshots

* Make sure the sliding sync migration banner has lower priority than the encryption setup ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-09 18:13:19 +02:00
Benoit Marty
c876313cd6 Migrate license to AGPL - other files. 2024-09-06 17:55:16 +02:00
Benoit Marty
3d54f08848 Migrate license to AGPL 2024-09-06 17:51:37 +02:00
Benoit Marty
0c89c26ce5 Migrate license to AGPL - sh files. 2024-09-06 17:50:45 +02:00
Benoit Marty
8062ee4670 Add missing license header on shell files. 2024-09-06 17:48:14 +02:00
Benoit Marty
62a6e916a6 Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty
717c059ecb Add missing license header on Python files. 2024-09-06 17:25:05 +02:00
Benoit Marty
3219cad14c Fix comment block on Python files 2024-09-06 17:21:51 +02:00
Benoit Marty
2b016227e9 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
9f67c65c2c Merge pull request #3360 from element-hq/feature/bma/sessionVerificationBannerIsBack
Add banner entry point to set up recovery
2024-08-30 16:56:11 +02:00
Benoit Marty
f0c2229621 Add banner entry point to set up recovery 2024-08-29 18:34:55 +02:00
Benoit Marty
20a8862b3f Add a way to sign out when the user is asked to verify the session. 2024-08-29 15:56:08 +02:00
Jorge Martín
9c09f96c0b Fix most review comments 2024-08-14 16:53:50 +02:00
Erik Johnston
95d6a80ae6 Fix build_rust_sdk.sh script to work on linux (#3291)
A few linux distributions don't have `gdate`, but I think they should
all have `date`.
2024-08-09 16:04:49 +02:00
Jorge Martin Espinosa
89ec904c4a Restore intentional mentions in the markdown/plain text editor (#3193)
* Restore intentional mentions in the markdown/plain text editor

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-15 18:27:59 +02:00
Benoit Marty
46b653b10b Add a local copy of inplace-fix.py and fix-pg-map-id.py from latest release https://github.com/obfusk/reproducible-apk-tools/blob/v0.2.7 2024-07-09 10:09:59 +02:00
Benoit Marty
442e67a7ee Add --alignment-preserved true when signing APK for F-Droid. Closes #3151 2024-07-08 18:21:03 +02:00
Jorge Martin Espinosa
b0846de5e1 Remove Showkase processor not found warning from Danger (#3148)
Instead create a new rule to check if the package name is included in `ComposablePreviewProvider`.
2024-07-05 15:15:18 +02:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Benoit Marty
1c4e8c81d3 Release note for nightly: remove title so that it can be used for Enterprise nightly without confusing the user. 2024-07-02 16:48:58 +02:00
Benoit Marty
6c0719e067 Merge pull request #3025 from element-hq/feature/bma/elementEnterprise
Element enterprise (EE) foundations
2024-07-01 17:08:40 +02:00
Benoit Marty
4047f4395d Let Konsist checks the license header 2024-07-01 11:12:02 +02:00
Benoit Marty
bef0d85415 Merge pull request #3106 from element-hq/feature/bma/fixRelease
Fix F-Droid reproducible build.
2024-06-27 15:23:35 +02:00
Benoit Marty
8079e09846 Fix download path. 2024-06-27 14:56:52 +02:00
Benoit Marty
90a7cc7868 inplace-fix.py also needs fix-pg-map-id.py to do the requested work. 2024-06-27 14:18:47 +02:00
Benoit Marty
86ce65c1e4 Remove towncrier: iterate on release script. 2024-06-27 12:24:22 +02:00
Benoit Marty
77d10eaf39 Remove towncrier template. 2024-06-27 12:16:34 +02:00
Benoit Marty
58707199ae Towncrier is gone, iterate on danger checks 2024-06-27 12:02:29 +02:00
Benoit Marty
83d5904f28 Remove towncrier invocation when building nightly. 2024-06-27 11:52:38 +02:00
Benoit Marty
b29d55f9ec Use curl instead of wget. 2024-06-24 17:54:26 +02:00
Benoit Marty
a1d18d603e Make sure F-Droid build are reproducible by patching the value of pg-map-id #3061 2024-06-24 17:46:19 +02:00
Benoit Marty
165605f489 Min SDK is now 24 2024-06-24 17:34:58 +02:00
Benoit Marty
b8a37475dc Use BuildTools 35.0.0 2024-06-24 17:31:47 +02:00
Jorge Martin Espinosa
ce91fe4ab2 Resolve display names in mentions in real time (#3051)
* Resolve display names in mentions in real time

* Use `LocalRoomMemberProfilesCache` to avoid having to implement `TextMessagePresenter`

* Also use local composition provider for `MentionSpanProvider`
2024-06-21 09:57:36 +00:00
Jorge Martin Espinosa
feef0f6976 Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Benoit Marty
463ce89a8a Fix script on CI 2024-06-14 10:27:03 +02:00
Benoit Marty
b2c570df03 Add Python script to check for invalid dependencies - keeping the existing errors to check that the CI works as expected. 2024-06-14 09:29:23 +02:00
Benoit Marty
38e0bb567c Fix warning: more redirection to end. 2024-06-11 17:58:24 +02:00
Benoit Marty
45a91bc6d4 Fix error 2024-06-11 15:39:05 +02:00
Benoit Marty
fed5683a7f Run shellcheck autofix. 2024-06-11 15:27:02 +02:00
Benoit Marty
e2aa84804d Merge pull request #3000 from element-hq/sync-localazy
Sync Strings
2024-06-11 15:16:55 +02:00
Benoit Marty
554d11e133 Ignore "Element" in screen_incoming_call_subtitle_android strings 2024-06-11 14:39:37 +02:00
Benoit Marty
376a3d923d Ignore errors when moving files from values-id to values-in 2024-06-11 14:39:09 +02:00
Jorge Martin Espinosa
6f8de0b2c6 Element Call ringing notifications (#2978)
- Add `ActiveCallManager` to handle incoming and ongoing calls.
- Add ringing call notifications with full screen intents and missed call ones as part of the 'conversation' notifications.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-10 11:51:19 +02:00
Benoit Marty
b3b58f14d7 Remove strings screen_qr_code_login_.* from the ftue module. 2024-06-04 09:42:00 +02:00
Jorge Martin Espinosa
35702c04e9 Sign in with QR code (#2793)
* Add QR code login.
* Add FF to disable it in release mode.
* Force portrait orientation on the login flow.
* Create `NumberedList` UI components.
* Improve camera permission dialog.
* Make nodes in qrcode feature use `QrCodeLoginScope` instead of `AppScope`
* Bump SDK version.
* Fix maestro tests

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-31 14:38:27 +02:00
Benoit Marty
bbb44db297 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00