Commit graph

14 commits

Author SHA1 Message Date
Jorge Martín
cf6ae7d611 Tweak the DefaultWorkManagerScheduler.hasPendingWork logic 2025-12-10 15:22:16 +01:00
Jorge Martín
2e88815e1b Make sure we schedule the vacuum task only if there isn't an existing one 2025-12-10 15:22:16 +01:00
Jorge Martín
95cded80a6 Fix lint issues 2025-12-10 15:22:16 +01:00
Jorge Martín
734485255a Add a periodic DB vacuuming task 2025-12-10 15:22:16 +01:00
Jorge Martín
7a35ab6c4a Make DefaultWorkManagerScheduler a singleton sin it now has an observer that should be a singleton 2025-12-05 17:42:57 +01:00
Jorge Martín
5947d6cd67 Use SessionObserver instead of SessionStore to observe sessions 2025-12-05 17:42:57 +01:00
Jorge Martín
6ef86cdda9 Test DefaultWorkManagerScheduler 2025-12-05 17:42:57 +01:00
Benoit Marty
a40988894b Improve code again 2025-11-19 18:28:00 +01:00
Benoit Marty
cb9d116af8 First attempt 2025-11-19 16:56:01 +01:00
Benoit Marty
8285478688 API modules do not need to setup dependency injection.
Move the implementation to the impl modules.
2025-11-12 19:05:39 +01:00
Benoit Marty
eb31505dc7 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty
f86431e663 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty
263e761907 Remove @Inject, not necessary anymore when class is annotated with @ContributesBinding 2025-10-22 18:52:37 +02:00
Jorge Martin Espinosa
ebe94f873e
Sync notifications using WorkManager (#5545)
* Initial implementation of notification sync using `WorkManager`

* Use custom `MetroWorkerFactory` to allow assisted injection in WorkManager Workers

* Add tests for `FetchNotificationWorker`. Create `FakeNotificationResolverQueue` to help testing.

* Add more tests, fix Konsist checks

* Add tests for `SyncNotificationWorkManagerRequest`

* Simplify `FakeNotificationResolverQueue`
2025-10-17 09:51:27 +00:00