Commit Graph

75 Commits

Author SHA1 Message Date
bmarty
f501f27d27 Sync Strings from Localazy 2024-06-03 00:24:07 +00:00
Benoit Marty
a00ee18f96 Add Konsist test Class with 'ContributeBinding' annotation should have allowed prefix and fix exissting issues.
Also remove annotation `DefaultPreferences`, we only have one implementation.
2024-05-31 10:18:08 +02:00
bmarty
46b6ae6251 Sync Strings from Localazy 2024-05-29 12:44:57 +00:00
Benoit Marty
9065e9d2eb Merge pull request #2921 from element-hq/sync-localazy
Sync Strings
2024-05-27 15:52:38 +02:00
Benoit Marty
bbb44db297 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
Benoit Marty
c71656df0c Rename class (code quality) 2024-05-23 14:42:06 +02:00
Benoit Marty
4df6d0c038 Merge pull request #2901 from element-hq/feature/bma/fixUnregisteringPusherLocalError
Fix unregistering pusher local error
2024-05-23 14:38:07 +02:00
Benoit Marty
35e14a3d46 Ignore local errors when unregistering UnifiedPush, to not block switching to another push provider. 2024-05-23 10:29:31 +02:00
Benoit Marty
878df55873 No need to use StandardTestDispatcher 2024-05-23 10:20:58 +02:00
Benoit Marty
593673126f No need to use advanceTimeBy 2024-05-23 10:19:06 +02:00
Jorge Martín
70188dcdc7 Simplify RegisterUnifiedPushUseCase, fix test 2024-05-23 09:48:32 +02:00
Benoit Marty
4fc3c6f889 Introduce lambdaError instead of using TODO, to handle error when a lambda is invoked and it should not. 2024-05-23 09:12:40 +02:00
Benoit Marty
955b4308ce Clean up 2024-05-23 00:26:28 +02:00
Benoit Marty
5b8c0871e8 Add test on isRelevant 2024-05-23 00:20:24 +02:00
Benoit Marty
0d445cdeb3 Refactor: change signature to always have clientSecret first, since it's acting as a key. 2024-05-23 00:16:56 +02:00
Benoit Marty
f0863a10c9 Add test on DefaultUnregisterUnifiedPushUseCase 2024-05-23 00:11:50 +02:00
Benoit Marty
a7ded728bd Add test on UnifiedPushTest.isRelevant 2024-05-22 23:56:25 +02:00
Benoit Marty
8ef97b7a10 Add test on DefaultUnifiedPushNewGatewayHandler 2024-05-22 23:51:10 +02:00
Benoit Marty
80d2f8b924 Add test on DefaultRegisterUnifiedPushUseCase 2024-05-22 23:36:01 +02:00
Benoit Marty
40608d8ac1 Add test on VectorUnifiedPushMessagingReceiver 2024-05-22 19:35:48 +02:00
Benoit Marty
0b3ef10e8c Create interface UnifiedPushNewGatewayHandler 2024-05-22 19:00:55 +02:00
Benoit Marty
a206b799a8 Create interface UnifiedPushGatewayResolver 2024-05-22 18:59:26 +02:00
Benoit Marty
e0d95f6d98 isCalledExactly(1) -> isCalledOnce() 2024-05-22 15:26:53 +02:00
Benoit Marty
1c52697e59 Fix wrong package name. 2024-05-22 14:44:35 +02:00
Benoit Marty
95507df783 Move some classes to the test module. 2024-05-22 14:41:14 +02:00
Benoit Marty
bfa238ba0d Add test on UnifiedPushProvider 2024-05-22 11:02:11 +02:00
Benoit Marty
6dcc16fc6b UnifiedPushGatewayResolver.getGateway cannot return null. 2024-05-22 09:25:57 +02:00
Benoit Marty
39bb6d3ff3 Add test on UnifiedPushGatewayResolver 2024-05-22 09:23:33 +02:00
Benoit Marty
5734050e88 Wait for UnifiedPush pusher to be registered before returning Result. 2024-05-21 14:45:17 +02:00
Benoit Marty
b3793169e9 Update comment 2024-05-21 14:45:17 +02:00
Benoit Marty
dc572af9db Ensure UnifiedPush endpoint is registered. 2024-05-21 14:45:17 +02:00
Benoit Marty
4bd01b6f4f Improve API, to avoid ignoring errors 2024-05-21 14:45:16 +02:00
Benoit Marty
eb0dcd6b8c UnifiedPush: correctly unregister the provider. 2024-05-21 14:45:15 +02:00
Benoit Marty
3d5fdfc22e Push distributor: ensure the current UnifiedPush distributor is stored 2024-05-21 14:45:15 +02:00
bmarty
0241014932 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
bmarty
602b3988e4 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
bmarty
7383ac6678 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty
7945297a28 Create dedicated module for notification troubleshoot. 2024-04-02 18:12:36 +02:00
Benoit Marty
8971a6c0fb Rename UserPushStoreFactory.create to UserPushStoreFactory.getOrCreate for code clarity. 2024-04-02 18:12:36 +02:00
Benoit Marty
75f1d2fdc0 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
Benoit Marty
496e0ea566 Improve openUrlInExternalApp API and move url to UnifiedPushConfig 2024-04-02 18:12:36 +02:00
Benoit Marty
a3253bbe5c Localize Troubleshoot notification feature. 2024-04-02 16:15:04 +02:00
Benoit Marty
df0d790493 Avoid tryEmit(), use emit() 2024-04-02 16:15:01 +02:00
Benoit Marty
8588ce7a72 Troubleshoot notifications screen 2024-04-02 16:15:00 +02:00
Benoit Marty
9605a783a2 Use new retrofit bom and change Maven coordinates of kotlinx-serialization 2024-03-25 09:56:30 +01:00
SpiritCroc
00bcc944d7 Do not crash on UP unregistered 2024-02-01 12:04:47 +01:00
Benoit Marty
57e1aee984 Ensure that a PushProvider is available on a device before using it.
It help to fallback to UnifiedPush (if available) if the PlayServices are not installed on the device.
2024-01-17 17:11:34 +01:00
Benoit Marty
72a363c244 Fix moar ktlint issues 2024-01-11 11:24:10 +01:00
Benoit Marty
378692f743 Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
renovate[bot]
7e9cda3aa9 Update plugin ktlint to v12.1.0 (#2200)
* Update plugin ktlint to v12.1.0

* Run `./gradlew ktlintFormat` and fix some issues manually.

* Fix other issues reproted by Ktlint

* Limit false positives, KtLint removes unnecessary curly brace in String templates.

* Remove useless Unit

* Minor improvements over ktlint changes

* Restore `AlertDialogContent` behaviour

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00