CakeWallet/android
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
..
.settings remove unrelated files 2023-01-18 17:01:09 +01:00
app Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
gradle/wrapper CW-798 Fix macos 15 issues (#1775) 2024-11-25 16:08:30 +02:00
.gitignore Added the project 2020-01-04 21:31:52 +02:00
.project remove unrelated files 2023-01-18 16:52:14 +01:00
build.gradle CW-798 Fix macos 15 issues (#1775) 2024-11-25 16:08:30 +02:00
gradle.properties CW-798 Fix macos 15 issues (#1775) 2024-11-25 16:08:30 +02:00
settings.gradle Added the project 2020-01-04 21:31:52 +02:00
settings_aar.gradle Changed app font to Lato. Changes for anrdoid version 2020-11-11 17:55:18 +02:00