CakeWallet/lib/store
cyan 686580ff78
Implement background sync for xmr using flutter_daemon (#2094)
* Implement background sync for xmr using flutter_daemon

* - initialize app config in background thread
- initializeAppConfigs without loading the wallet.

* - properly do awaited calls in methodChannel
- prevent locking main thread during background sync

* add back background sync debug page
fix issues caused by xmr wallet being view only (and read only)

* changes from review
improve starting of bgsync task

* update stopBackgroundSync, await listener functions, ensure that listener always start (call _start in constructor)

* DO-NOT-MERGE: extre verbose monero logs

* stop background service when app is being opened

* improve monitoring of background sync

* update flutter_daemon to ensure network constraint
prevent throwing errors on isBackgroundSyncEnabled
check network before syncing

* Update lib/main.dart

* revert Update main.dart [skip ci]

* continously run network check

* disable charging requirement,
fix status reporting of background sync in UI

* Refactor background sync logic, and add UI notifications for battery optimization. Updated flutter_daemon version modified build.gradle for signing config to allow testing in both release and debug modes.

* verbose monero only when requested in code.
Do not start background sync when battery optimization is on

* fix background sync mode not properly reflecting state changes

* drop unnecessary dependency

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-03-21 19:22:00 +02:00
..
anonpay Automated Integration Tests Flows (#1686) 2024-11-07 16:46:08 +02:00
dashboard CW-961-Integrate-xoswap (#2060) 2025-03-14 03:02:39 +02:00
templates Cw 433 support send templates with multiple recipients (#995) 2023-08-02 01:19:04 +03:00
yat CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
app_store.dart v4.23.0 release candidate (#1974) 2025-01-28 23:53:43 +02:00
authentication_store.dart Ledger monero fix (#1834) 2024-12-14 01:32:36 +02:00
node_list_store.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
secret_store.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
seed_settings_store.dart Cw 488 seed offset (#1631) 2024-08-26 20:06:54 +03:00
settings_store.dart Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
wallet_list_store.dart Part 1 2020-09-21 14:50:26 +03:00