CakeWallet/lib/view_model/settings
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
..
choices_list_item.dart Cw 155 monero synchronization (#1014) 2023-08-04 20:55:56 +03:00
display_settings_view_model.dart UI enhancements (#1895) 2025-02-12 14:35:59 +03:00
link_list_item.dart Update support links (#1595) 2024-08-13 14:15:47 +03:00
mweb_settings_view_model.dart Mweb fixes (#1972) 2025-01-24 20:09:48 +02:00
other_settings_view_model.dart UI enhancements (#1895) 2025-02-12 14:35:59 +03:00
picker_list_item.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
privacy_settings_view_model.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
regular_list_item.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
security_settings_view_model.dart Generic fixes (#1274) 2024-01-27 00:51:21 +02:00
settings_list_item.dart General changes. CAKE-1. 2020-07-06 23:09:03 +03:00
silent_payments_settings_view_model.dart Cw 453 (#1306) 2024-05-29 17:43:48 +03:00
switcher_list_item.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
sync_mode.dart Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
trocador_providers_view_model.dart Update list of trocador providers to be fetched from the api (#1379) 2025-03-11 21:51:52 +02:00
version_list_item.dart Flutter upgrade 2022-10-12 13:09:57 -04:00