Commit graph

17012 commits

Author SHA1 Message Date
Benoit Marty
2b8d1dd11c Write documentation about UnifiedPush.
Introduction is inspired from #2743.
2022-06-09 10:18:06 +02:00
Benoit Marty
3560ac95d1 Create a Kotlin Config object in vector-config module, for easy configuration. 2022-06-09 10:18:06 +02:00
Benoit Marty
5846ad5768 Inject constructor of BackgroundSyncStarter and FcmHelper 2022-06-09 10:18:06 +02:00
Benoit Marty
3c72ee6e0c Unregister UP when signing out 2022-06-09 10:18:06 +02:00
Benoit Marty
905934b9d4 Rename method for clarity 2022-06-09 10:18:06 +02:00
Benoit Marty
a139756dbc Fix an issue with empty endpoint. It can happen if the endpoint is manually removed from the distributor. 2022-06-09 10:18:06 +02:00
Benoit Marty
87087197e5 shorter code 2022-06-09 10:18:06 +02:00
Benoit Marty
639c570150 Create extension to get app names 2022-06-09 10:18:06 +02:00
Benoit Marty
fc66e5f120 Ignore if no change is done - bugfix 2022-06-09 10:18:06 +02:00
Benoit Marty
a5378d6e94 avoid runBlocking 2022-06-09 10:18:06 +02:00
Benoit Marty
fb7df5bf46 Ignore if no change is done. 2022-06-09 10:18:06 +02:00
Benoit Marty
420144dceb Fix back issue on the dialog.
Should split UI a bit more.
2022-06-09 10:18:06 +02:00
Benoit Marty
110c17e57d No need to have a mutable list here. 2022-06-09 10:18:06 +02:00
Benoit Marty
18b49068c1 Change BuildConfig field to a VectorFeature. 2022-06-09 10:18:06 +02:00
Benoit Marty
80d42f0963 Remove unused methods / clarify API 2022-06-09 10:18:06 +02:00
Benoit Marty
35e0a0af33 Detekt 2022-06-09 10:18:06 +02:00
Benoit Marty
6cc2a36ee1 Add explicit Json names 2022-06-09 10:18:06 +02:00
Benoit Marty
cdfb728a73 Clarify the data classes for the Json parsing 2022-06-09 10:18:06 +02:00
Benoit Marty
45768c5251 Small cleanup 2022-06-09 10:18:06 +02:00
Benoit Marty
bbbeb4b283 Extract storage to its own class. 2022-06-09 10:18:06 +02:00
Benoit Marty
bdb2d29666 Catch 404 2022-06-09 10:18:06 +02:00
Benoit Marty
3f6b5292d4 Add summary to the notification with the current value. 2022-06-09 10:18:06 +02:00
Benoit Marty
76bc6a5e0a Move the setting at the beginning of the section 2022-06-09 10:18:06 +02:00
Benoit Marty
fb8408c3da Small cleanup 2022-06-09 10:18:06 +02:00
Benoit Marty
4018113c88 Better usage of Timber. 2022-06-09 10:18:06 +02:00
Benoit Marty
77601f61fb typo 2022-06-09 10:18:06 +02:00
Benoit Marty
ff6aa1147c VectorPreferences can be injected. 2022-06-09 10:18:06 +02:00
Benoit Marty
ad8cb22863 We need an Activity to display the dialog 2022-06-09 10:18:06 +02:00
Benoit Marty
ddf6a69a69 Small cleanup 2022-06-09 10:18:06 +02:00
Benoit Marty
399e95a247 setOnDismissListener should cover all the cases. 2022-06-09 10:18:06 +02:00
Benoit Marty
cc80bf986c Use plurals 2022-06-09 10:18:06 +02:00
Benoit Marty
12d969b2c0 Prefer using toString() 2022-06-09 10:18:06 +02:00
Benoit Marty
74de9c82c0 Small rework 2022-06-09 10:18:06 +02:00
Benoit Marty
9216d8ba32 Small cleanup 2022-06-09 10:18:06 +02:00
Benoit Marty
f1e57d2970 Use .orEmpty() instead of ?: "" 2022-06-09 10:18:06 +02:00
Benoit Marty
5e10449746 Use the RawService to do network request. 2022-06-09 10:18:06 +02:00
Benoit Marty
674e3a72c4 Make UnifiedPushHelper a regular class and inject the context in the constructor to clean up the API 2022-06-09 10:18:06 +02:00
Benoit Marty
96acb61fa1 Add unifiedpush to the project dict. 2022-06-09 10:16:59 +02:00
Benoit Marty
09a918bac4 Cleanup 2022-06-09 10:16:59 +02:00
Benoit Marty
42811751fb Move ALLOW_EXTERNAL_UNIFIEDPUSH_DISTRIB to defaultConfig and document it. 2022-06-09 10:16:59 +02:00
Benoit Marty
d88d27985e Sort alphabetically. 2022-06-09 10:16:59 +02:00
Benoit Marty
ee7fccf072 Fix compilation issues after rebase 2022-06-09 10:16:59 +02:00
sim
7eca405693 Update UnifiedPush libs
Signed-off-by: sim <git@sgougeon.fr>
2022-06-09 10:16:59 +02:00
sim
f774f46627 Check custom unifiedpush gateway 2022-06-09 10:16:59 +02:00
sim
1069f77bd5 Lint 2022-06-09 10:16:59 +02:00
sim
f00257f461 Add UnifiedPush troubleshoot 2022-06-09 10:16:59 +02:00
sim
848adc415f Add UnifiedPush settings 2022-06-09 10:16:59 +02:00
sim
04b297b261 Add UnifiedPush support 2022-06-09 10:16:59 +02:00
Adam Brown
befcfe8c5b renaming success type to something more concrete 2022-06-09 08:52:29 +01:00
Adam Brown
88167a0287 fixing import ordering 2022-06-09 08:52:29 +01:00