CakeWallet/cw_core
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
..
lib Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
.gitignore Revert "Add pubspec.lock files and Podfile.lock to .gitignore [skip ci]" 2023-02-08 19:25:37 +02:00
.metadata Move bitcoin and monero parts into self modules. 2021-12-24 14:52:08 +02:00
CHANGELOG.md Move bitcoin and monero parts into self modules. 2021-12-24 14:52:08 +02:00
LICENSE Move bitcoin and monero parts into self modules. 2021-12-24 14:52:08 +02:00
pubspec.lock Add decred (#1938) 2025-03-21 04:18:47 +02:00
pubspec.yaml Solana Wallet New Implementation (#2011) 2025-03-14 16:42:17 +02:00
README.md Move bitcoin and monero parts into self modules. 2021-12-24 14:52:08 +02:00

cw_core

A new Flutter package project.

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.