CakeWallet/cw_monero
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
..
example/linux CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
lib Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
linux Zano with passphrase (#1971) 2025-01-24 20:33:24 +02:00
.gitignore Dashboard desktop view (#737) 2023-04-14 06:39:08 +02:00
.metadata CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
analysis_options.yaml Dashboard desktop view (#737) 2023-04-14 06:39:08 +02:00
CHANGELOG.md Added the project 2020-01-04 21:31:52 +02:00
LICENSE Changed README.md and LICENSE for cw_monero 2020-01-04 21:37:51 +02:00
pubspec.lock update pubspec lock [skip ci] 2025-03-21 04:58:34 +02:00
pubspec.yaml CW-686-polyseed-language-issues (#2098) 2025-03-21 05:32:40 +02:00
README.md Changed README.md and LICENSE for cw_monero 2020-01-04 21:37:51 +02:00

cw_monero

This project is part of Cake Wallet app.

Copyright (c) 2020 Cake Technologies LLC.