Commit graph

81 commits

Author SHA1 Message Date
Benoit Marty
2f2ee1b894 Format project (only modified files, there are other fomatting issues). 2022-06-09 10:38:38 +02:00
Benoit Marty
5846ad5768 Inject constructor of BackgroundSyncStarter and FcmHelper 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
18b49068c1 Change BuildConfig field to a VectorFeature. 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
09a918bac4 Cleanup 2022-06-09 10:16:59 +02:00
sim
f00257f461 Add UnifiedPush troubleshoot 2022-06-09 10:16:59 +02:00
ericdecanini
6df88fba59 Merge remote-tracking branch 'origin/develop' into task/eric/when-arrow-alignment
# Conflicts:
#	matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/GroupSyncHandler.kt
#	matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/room/RoomSyncHandler.kt
#	vector/src/main/java/im/vector/app/features/home/HomeActivity.kt
#	vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
#	vector/src/main/java/im/vector/app/features/home/InitSyncStepFormatter.kt
#	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MessageItemFactory.kt
#	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/style/TimelineMessageLayoutFactory.kt
#	vector/src/main/java/im/vector/app/features/sync/widget/SyncStateView.kt
2022-06-08 12:59:54 +02:00
Benoit Marty
dd22cdf7f2 Rename existing SyncService to SyncAndroidService to avoid confusion 2022-06-08 09:55:28 +02:00
Benoit Marty
f62d598b79 Create a SyncService and move some methods from Session there.
Merge SyncStatusService to SyncService, and rename some classes
2022-06-08 09:53:33 +02:00
ericdecanini
b3fdb5ed17 Changes code style when arrow alignment 2022-05-23 12:57:57 +02:00
ericdecanini
3f3662e605 Changes code style method parameters new line around parentheses to true 2022-05-23 12:30:42 +02:00
Benoit Marty
f5d0663b06 Remove non needed extra spaces 2022-05-20 09:48:17 +02:00
Benoit Marty
e35bb772c1
Merge pull request #5941 from vector-im/feature/bma/konfetti_speed
No animation -> no chat effect
2022-05-09 17:05:53 +02:00
ericdecanini
3fb03e2b2c Reformats project based on editorconfig 2022-05-05 19:10:35 +02:00
Benoit Marty
66b32a74d5 Convert some fun to Context extensions 2022-05-05 11:57:54 +02:00
Benoit Marty
cdcaf93fc7 Fix F-Droid build 2022-05-03 15:02:34 +02:00
Benoit Marty
40d3203297 Use Clock interface app side 2022-05-03 15:02:34 +02:00
ericdecanini
de899bbb18 Formats entire project 2022-04-21 11:50:15 +02:00
Benoit Marty
3895ac85d8 Move SyncService to api package 2022-04-12 15:38:20 +02:00
Benoit Marty
d80a25feac Fix "@JvmStatic used for @Provides function in an object class" Lint warning.
See https://github.com/google/dagger/releases/tag/dagger-2.25.2 point 2.ii. : @Module object classes no longer need @JvmStatic on the provides methods.
Ensure this warning does not appear again.
2021-11-19 15:29:11 +01:00
Benoit Marty
f88a477f04 Fix crash on Android 12: PendingIntent.FLAG_IMMUTABLE has to be set 2021-11-15 12:24:48 +01:00
Benoit Marty
756f846e74 android:exported has to be explicitly set when targeting Android 12 2021-11-15 12:24:48 +01:00
Adam Brown
036a81d60b extending from the vector service to avoid extra service boilerplate 2021-11-04 09:47:16 +00:00
Adam Brown
48678382ba adding new copy for the foreground listening notification 2021-11-04 09:45:59 +00:00
Adam Brown
006ad10392 removing extra blank line 2021-11-04 09:45:59 +00:00
Adam Brown
c14ffefe7c updating background sync function docs with more information 2021-11-04 09:45:59 +00:00
Adam Brown
56d5a38e80 reverting parts of the rapid periodic sync, unfortunately it suffers from the same issue as the one shot workers -
the system can ignore them if the application process is in the background
2021-11-04 09:45:59 +00:00
Adam Brown
71b27bfd5d making the guard service a noop, lifeline scheduling will be brought back if we confirm the service by itself is not enough
- reuses the sync foreground notification for the guard foreground service
2021-11-04 09:45:59 +00:00
Marcel Langner
c6b942cd31 fixed ktlint complaining and errors in italian translation file 2021-11-04 09:45:59 +00:00
Marcel Langner
97b4fd69b4 fixed typo 2021-11-04 09:45:59 +00:00
Marcel Langner
e14fb16db2 initial commit of a permanent GuardService for fdroid background syncing 2021-11-04 09:45:59 +00:00
Andrew Aylett
d261dd705d Periodic sync to re-kick-off rapid sync 2021-11-04 09:45:59 +00:00
ganfra
c87d276f8a Hilt: fix fdroid 2021-10-22 18:09:14 +02:00
Benoit Marty
d1e9f3131a Big annoying commit: execute command ./gradlew ktlintFormat - Fix "colon-spacing" 2021-10-01 13:31:15 +02:00
Benoit Marty
e771b21ea3 Rename parameters for clarity 2021-01-12 16:07:49 +01:00
Benoit Marty
b69d8ad71a Code cleanup, fix crash if appContext !is HasVectorInjector 2021-01-12 16:07:49 +01:00
Benoit Marty
cb1addd5e3 Push test now does not display notification anymore. Add a dedicated test to do it 2020-10-09 20:10:55 +02:00
Benoit Marty
bc339191ea Fix Copyright mention 2020-10-08 15:11:01 +02:00
Benoit Marty
f7e040efd2 F-Droid compilation 2020-10-07 19:08:00 +02:00
Benoit Marty
2ed7be243b Restore TestBatteryOptimization 2020-09-11 11:31:37 +02:00
Benoit Marty
7efc58cb42 Avoid duplication of code and fix issue on OnApplicationUpgradeOrRebootReceiver: background starts even if notification are disabled 2020-09-11 11:13:30 +02:00
Valere
3ff475af7a Avoid scheduling alarm until network is back 2020-09-10 17:10:47 +02:00
Valere
43c24e55ab Restart fdroid sync on application boot 2020-09-10 17:10:47 +02:00
Valere
971b425e17 F-Droid background sync modes 2020-09-10 17:10:47 +02:00
Benoit Marty
11b5512cb8 Rename package of SDK modules 2020-08-13 12:50:58 +02:00
Tobias Preuss
40f8e6061f Use "Context#getSystemService" extension function provided by "core-ktx".
+ Re-use local variable where possible.
2020-08-09 16:16:06 +02:00
Benoit Marty
a1f90abcd2 Rename package im.vector.riotx to im.vector.app (IDE) 2020-08-03 18:46:29 +02:00
Benoit Marty
92e809fa6d Fix lint error, following the upgrade of the libs 2020-07-06 22:05:29 +02:00
Benoit Marty
4261b0e78a Fix pusher issue. It was set by mistake when the notification for this device was disabled 2020-03-06 17:19:48 +01:00