Benoit Marty
4e7f5c46b8
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
0a2d87f6b1
Add test on DefaultUnregisterUnifiedPushUseCase
2024-05-23 00:11:50 +02:00
Benoit Marty
02fa405b8e
Add test on UnifiedPushTest.isRelevant
2024-05-22 23:56:25 +02:00
Benoit Marty
f974cdd12a
Add test on DefaultUnifiedPushNewGatewayHandler
2024-05-22 23:51:10 +02:00
Benoit Marty
f304c1f65a
Add test on DefaultRegisterUnifiedPushUseCase
2024-05-22 23:36:01 +02:00
Benoit Marty
50b7f2c2c1
Add test on VectorUnifiedPushMessagingReceiver
2024-05-22 19:35:48 +02:00
Benoit Marty
09b2b2c476
Create interface UnifiedPushNewGatewayHandler
2024-05-22 19:00:55 +02:00
Benoit Marty
738bb831fa
Create interface UnifiedPushGatewayResolver
2024-05-22 18:59:26 +02:00
Benoit Marty
fe771a37c2
isCalledExactly(1) -> isCalledOnce()
2024-05-22 15:26:53 +02:00
Benoit Marty
707a530752
Fix wrong package name.
2024-05-22 14:44:35 +02:00
Benoit Marty
08f70b9cfd
Move some classes to the test module.
2024-05-22 14:41:14 +02:00
Benoit Marty
1bf38e96ae
Add test on UnifiedPushProvider
2024-05-22 11:02:11 +02:00
Benoit Marty
86eceb3cbc
UnifiedPushGatewayResolver.getGateway cannot return null.
2024-05-22 09:25:57 +02:00
Benoit Marty
50004e37cf
Add test on UnifiedPushGatewayResolver
2024-05-22 09:23:33 +02:00
Benoit Marty
d459c0806b
Wait for UnifiedPush pusher to be registered before returning Result.
2024-05-21 14:45:17 +02:00
Benoit Marty
2a20044cc7
Update comment
2024-05-21 14:45:17 +02:00
Benoit Marty
68708837d8
Ensure UnifiedPush endpoint is registered.
2024-05-21 14:45:17 +02:00
Benoit Marty
a65c290dd3
Improve API, to avoid ignoring errors
2024-05-21 14:45:16 +02:00
Benoit Marty
ad63f2b0c5
UnifiedPush: correctly unregister the provider.
2024-05-21 14:45:15 +02:00
Benoit Marty
d2fbff09b8
Push distributor: ensure the current UnifiedPush distributor is stored
2024-05-21 14:45:15 +02:00
bmarty
83a8a631f2
Sync Strings from Localazy
2024-05-20 00:23:05 +00:00
bmarty
0910da0a14
Sync Strings from Localazy
2024-05-13 12:47:48 +00:00
bmarty
4f82baa2b0
Sync Strings from Localazy
2024-04-29 00:18:59 +00:00
Benoit Marty
cb435c523b
Create dedicated module for notification troubleshoot.
2024-04-02 18:12:36 +02:00
Benoit Marty
52c039d676
Rename UserPushStoreFactory.create to UserPushStoreFactory.getOrCreate for code clarity.
2024-04-02 18:12:36 +02:00
Benoit Marty
e18e5f1cc5
Run ./tools/localazy/downloadStrings.sh --all
2024-04-02 18:12:36 +02:00
Benoit Marty
565e5ce87d
Improve openUrlInExternalApp API and move url to UnifiedPushConfig
2024-04-02 18:12:36 +02:00
Benoit Marty
09b2cbaaf5
Localize Troubleshoot notification feature.
2024-04-02 16:15:04 +02:00
Benoit Marty
74048cca8f
Avoid tryEmit(), use emit()
2024-04-02 16:15:01 +02:00
Benoit Marty
2bfe125a77
Troubleshoot notifications screen
2024-04-02 16:15:00 +02:00
SpiritCroc
f93c962509
Do not crash on UP unregistered
2024-02-01 12:04:47 +01:00
Benoit Marty
7498c148f1
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
d01c70a4fd
Fix moar ktlint issues
2024-01-11 11:24:10 +01:00
Benoit Marty
5d086ad82d
Fix moar ktlint issues
2024-01-11 10:02:10 +01:00
renovate[bot]
c8bd362397
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
Benoit Marty
0d204f5e98
Share tag with other modules.
2023-09-15 17:03:32 +02:00
Benoit Marty
7083abcf09
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Benoit Marty
1354ec76c9
Enable detekt rules DataClassShouldBeImmutable and fix existing issues.
2023-07-26 11:18:00 +02:00
Benoit Marty
86756dbc09
Enable detekt rules UnusedParameter and UnusedPrivateProperty and cleanup the code.
2023-07-20 17:48:56 +02:00
Yoan Pintas
f534ecda96
Init analytics modules ( #350 )
2023-06-05 13:11:34 +00:00
jonnyandrew
6239aca8cb
Allow custom push gateway to use non-default port ( #374 )
2023-05-02 15:04:47 +00:00
Jorge Martin Espinosa
fae3417181
Validate several ids in constructors ( #336 )
...
* Validate ids in constructors.
* Remove redundant `.value` usage in string interpolation.
* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Benoit Marty
a8ae909137
Use ContributesMultibinding annotation and remove the module for push providers.
2023-04-18 10:12:45 +02:00
Benoit Marty
62639c44a7
Cleanup
2023-04-12 10:06:11 +02:00
Benoit Marty
eb6276e09d
Improve asXId and make tests pass in release and debug mode.
2023-04-12 09:50:04 +02:00
Benoit Marty
20370656cd
UnifiedPush WIP
2023-04-12 09:50:04 +02:00
Benoit Marty
287fca5438
UnifiedPush WIP
2023-04-12 09:49:23 +02:00
Benoit Marty
0126c7ddc1
Split GoogleFcmHelper
2023-04-12 09:48:56 +02:00
Benoit Marty
21a07fda07
Sort provider by index
2023-04-12 09:48:56 +02:00
Benoit Marty
7333995630
Split push module into several modules: Firebase, UnifiedPush, store
2023-04-12 09:48:56 +02:00