Commit Graph

401 Commits

Author SHA1 Message Date
Benoit Marty 9eabc830c0 Fix flaky tests. 2024-10-21 22:43:49 +02:00
bmarty b179518962 Sync Strings from Localazy 2024-10-21 00:27:20 +00:00
Benoit Marty 6e27266988 Rename some classes which implement PreviewParameterProvider according to the new naming convention.
`Provider` suffix is enough and more used than `PreviewProvider`, so let's make the codebase more consistent.
2024-10-16 11:17:46 +02:00
Benoit Marty 269551366c Let FakeKnockRoom and FakeLogoutUseCase use simulateLongTask 2024-10-16 10:03:19 +02:00
Benoit Marty d5bf8ae42f Safer code. 2024-10-16 10:03:19 +02:00
Benoit Marty fb52657b12 Let AsyncAction.Confirming be an interface, with a AsyncAction.ConfirmingNoParams data object.
This will allow inheritance of `AsyncAction.Confirming` with parameter(s).
2024-10-14 10:49:55 +02:00
bmarty 851a547b89 Sync Strings from Localazy 2024-10-14 00:27:28 +00:00
ganfra eeb6b6f4bf misc : remove direct usage of RoomSummary in UI and let RoomSummary use RoomInfo. 2024-10-08 21:34:34 +02:00
Benoit Marty 8db9c22f97 Remove dependencies to other presenters to AnalyticsPreferencesPresenter. 2024-10-07 17:45:18 +02:00
Benoit Marty 241dae14f4 Remove dependencies to other presenters to FullScreenIntentPermissionsPresenter.
Also do some renaming since FullScreenIntentPermissionsPresenter interface can be removed.
2024-10-07 17:45:18 +02:00
Benoit Marty a100676f4b Remove dependencies to other presenters from PreferencesRootPresenter.
Also do some renaming since DirectLogoutPresenter interface can be removed.
2024-10-07 17:45:17 +02:00
Benoit Marty e9e4963373 Remove dependencies to other presenters from DeveloperSettingsPresenter 2024-10-07 17:45:17 +02:00
bmarty e25ba65170 Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
Benoit Marty dd2a1b3388 Add settings to hide images and videos in the timeline.
Hide images, videos and stickers in the timeline.
Disable click on hidden content. It must be revealed first.
Add preview without BlurHash.
Also hide image in thumbnails.
2024-10-04 17:01:51 +02:00
Jorge Martin Espinosa eeec7cc785 Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
renovate[bot] 9756afc5d1 Update dependency androidx.compose:compose-bom to v2024.09.00 (#3399)
* Update dependency androidx.compose:compose-bom to v2024.09.00

* Adapt code for changes.

* Workaround crash when closing the RTE

* Fix broken bottom sheet colors and shape

* Fix tons of warnings and deprecations

* Fix lint issues

* Fix more M3 update changes

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: ganfra <francoisg@matrix.org>
Co-authored-by: ElementBot <android@element.io>
2024-09-26 09:30:20 +02:00
Benoit Marty 0402703803 Remove ability to change default common trace level 2024-09-23 17:21:39 +02:00
bmarty 1768f24fd0 Sync Strings from Localazy 2024-09-23 00:23:49 +00:00
Benoit Marty b87bec6228 Account deactivation. 2024-09-17 16:51:11 +02:00
bmarty bb0a281342 Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
Jorge Martin Espinosa 663362ac7f 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 88b0eff0fe Introduce value class "DeviceId" 2024-09-11 09:52:25 +02:00
Benoit Marty f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty faa2f8108c Remove the migration screen. #3292 2024-09-04 12:11:31 +02:00
Benoit Marty 965e445d04 Replace OSS licenses plugin with Licensee and some manually done UI.
This should fix both configuration cache and reproducible F-droid builds.

Cleanup and remove gplay/fdroid diff on open source licenses.

Co-authored by @jmartinesp
2024-09-02 21:11:52 +02:00
bmarty 5ad2764402 Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty 460e095e78 Provide dark theme parameter. 2024-08-29 12:23:39 +02:00
Benoit Marty cfbd0c4c02 Ensure success logout url is opened in all cases. 2024-08-29 12:16:38 +02:00
Benoit Marty 1026a296e3 Make LogoutUseCase.logout return the result of the SDK method. 2024-08-29 11:47:22 +02:00
bmarty cd267249ec Sync Strings from Localazy 2024-08-26 00:25:40 +00:00
bmarty 3e67448006 Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
ElementBot 8bd48fdc60 Sync Strings (#3297)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-08-12 06:03:23 +00:00
bmarty 76804d9e48 Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ganfra 60fdee32bf Merge branch 'develop' into feature/jme/add-simplified-sliding-sync-toggle 2024-07-24 17:35:57 +02:00
ElementBot 1f01bd73c4 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Jorge Martín d4f8052696 Unify the internal pinunlock.SignOut and the new LogoutUseCase classes 2024-07-19 19:51:49 +02:00
Jorge Martín ff6ea43237 Don't reset the SSS toggle when logged out.
Instead, force a logout when toggling the option so user needs to log in again and create a new session using SSS.
2024-07-19 16:32:25 +02:00
Jorge Martín b9f4403408 Add simplified sliding sync toggle to developer options 2024-07-19 14:46:42 +02:00
Benoit Marty 766ae389ce Add generated screen to show open source licenses.
For Google Play variant only
2024-07-17 15:53:08 +02:00
bmarty 14511633db Sync Strings from Localazy 2024-07-15 00:23:30 +00:00
Benoit Marty b0c9091948 Merge pull request #3159 from element-hq/feature/bma/elementCallPip
Add support for Picture In Picture for Element Call
2024-07-08 19:58:39 +02:00
Benoit Marty 966219b791 Rename method (copy paste error) 2024-07-08 12:14:03 +02:00
ElementBot 3a91b4f39d Sync Strings (#3156)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-08 07:34:58 +00:00
renovate[bot] 68efc918ba Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31 (#3145)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31

* Use new Rust client side sorting API

* Make `RoomListEntriesUpdate.describe()` an extension function

* Remove `RoomListSummary.Filled` and `RoomListSummary.Empty`

* Fix icon sizes to pass the lint checks

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-05 15:25:42 +00:00
jmartinesp dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa b0cebf5ca0 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
bmarty 32c5da898b Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Benoit Marty f6fe030d6a Merge pull request #3053 from element-hq/feature/bma/callSettings
Alert for incoming call even if notifications are disabled - WAITING FOR FINAL PRODUCT DECISION
2024-06-28 14:21:23 +02:00
ElementBot fd6bcb7857 Sync Strings (#3077)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-06-24 09:29:35 +02:00
Benoit Marty 7d0323d708 Create extension RoomSummaryDetails.getAvatarData to avoid code duplication. 2024-06-20 16:16:55 +02:00