Commit Graph

182 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
6bfd28b1d8 Remove or replace unnecessary BackHandler calls (#4148)
* Remove/replace `BackHandler` calls:

- For `UserProfileView`, remove the redundant `BackHandler` -> `navigateUp()` call.
- For `SetupBiometricView`, remove the `enabled = true` parameter, as this is the default value.
2025-01-15 10:43:26 +01:00
Benoit Marty
05fc76822a Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
bmarty
1cadb353dd Sync Strings from Localazy 2024-12-30 10:12:13 +00:00
bmarty
7a57ec1cc1 Sync Strings from Localazy 2024-12-23 00:16:39 +00:00
bmarty
e18e4142c7 Sync Strings from Localazy 2024-12-16 00:28:36 +00:00
bmarty
01855f09a9 Sync Strings from Localazy 2024-12-09 00:30:45 +00:00
bmarty
545b4f500c Sync Strings from Localazy 2024-12-02 00:30:02 +00:00
ganfra
1f94504a22 Merge pull request #3930 from element-hq/feature/fga/check_fingerprint_before_enabling
change : confirm biometric before allowing biometric unlock.
2024-11-25 14:32:36 +01:00
ElementBot
1b51cd8300 Sync Strings (#3936)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-11-25 09:06:57 +00:00
ganfra
5fcf8a6cb4 change : confirm biometric before allowing biometric unlock. 2024-11-22 17:13:08 +01:00
ElementBot
411895456b Sync Strings - add translations to Finnish (#3883)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-11-18 11:37:17 +00:00
Benoit Marty
227bfab37b Use BigIcon. 2024-10-22 12:02:44 +02:00
Benoit Marty
f5edb6d8fd Let IconTitleSubtitleMolecule use BigIcon. 2024-10-22 11:53:30 +02:00
bmarty
f19ea02390 Sync Strings from Localazy 2024-10-21 00:27:20 +00:00
Benoit Marty
97fb7bc2fa 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
05291bcf2f Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
Jorge Martin Espinosa
4a43fcb69a Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa
2efdb3ae45 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]
0dac449fec 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
bmarty
a064fb4fab Sync Strings from Localazy 2024-09-23 00:23:49 +00:00
bmarty
e0c24c0f1c Sync Strings from Localazy 2024-09-16 18:40:24 +00: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
62a6e916a6 Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +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
d6d7b100ec Ensure starting PinUnlockActivity does not crash the application.
Fix regression from #3222 fc6436dada
2024-08-30 16:15:54 +02:00
Benoit Marty
f0952240a0 Fix test. 2024-08-29 12:38:58 +02:00
Benoit Marty
6657ebf42a Provide dark theme parameter. 2024-08-29 12:23:39 +02:00
Benoit Marty
fae47143f1 Ensure success logout url is opened in all cases. 2024-08-29 12:16:38 +02:00
Benoit Marty
ef62d56c9a Change PinUnlockState.signOutAction type to AsyncAction. 2024-08-29 11:49:57 +02:00
Benoit Marty
329c0670ed Make LogoutUseCase.logout return the result of the SDK method. 2024-08-29 11:47:22 +02:00
bmarty
1b064a008f Sync Strings from Localazy 2024-08-26 00:25:40 +00:00
bmarty
5765d9bf9f Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
bmarty
d288ace4bd Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ganfra
b974032e64 Merge branch 'develop' into feature/jme/add-simplified-sliding-sync-toggle 2024-07-24 17:35:57 +02:00
ElementBot
9522569860 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Jorge Martín
fc6436dada Unify the internal pinunlock.SignOut and the new LogoutUseCase classes 2024-07-19 19:51:49 +02:00
Benoit Marty
3b46ab6523 Ensure that pinKeyMaxWidth and pinKeyMaxHeight are never negative.
Fix crash `Exception: java.lang.IllegalStateException: lineHeight can't be negative`
Can be due to the rendering when the Activity is animated maybe?
2024-07-16 16:01:45 +02:00
Benoit Marty
88ed1b6262 Fix typo. 2024-07-16 15:47:21 +02:00
Benoit Marty
922f65cc96 Some renaming. 2024-07-10 16:27:29 +02:00
Benoit Marty
21fafe2fc9 No need to be a member of the class. 2024-07-10 16:26:09 +02:00
Benoit Marty
6d65c90e81 Some renaming. 2024-07-10 16:25:20 +02:00
Benoit Marty
1a94be4e9e Rework. Keep io.element.android.appconfig.LockScreenConfig as simple as possible. 2024-07-10 16:25:20 +02:00
Benoit Marty
29b115dfdf Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Benoit Marty
7c37cdee5f Ensure PinUnlockActivity and IncomingCallActivity use the internal theme set by the user. 2024-07-08 18:17:44 +02:00
jmartinesp
58f2cbf489 Sync Strings from Localazy 2024-07-03 11:21:27 +00: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
de0382eab4 Fix wrong dependencies.
Detected by Sonar: https://sonarcloud.io/project/issues?id=vector-im_element-x-android&open=AY1oUC_Jzk7jMkPkjDmI
2024-06-13 16:55:42 +02:00
bmarty
57510316ec Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
bmarty
f501f27d27 Sync Strings from Localazy 2024-06-03 00:24:07 +00:00
Benoit Marty
0e4b30e58d Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00