mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 09:27:40 +00:00
d6e10bdbd5
* feat: Disable battery optimization on android * fix: Add permission to androidmanifestbase file * Increase the frequency of app running in background on aggressive mode * Revert the sync mode frequency [skip ci] * Fix translation * increase frequency to 1 hour --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
15 lines
423 B
Dart
15 lines
423 B
Dart
enum SyncType { disabled, unobtrusive, aggressive }
|
|
|
|
class SyncMode {
|
|
SyncMode(this.name, this.type, this.frequency);
|
|
|
|
final String name;
|
|
final SyncType type;
|
|
final Duration frequency;
|
|
|
|
static final all = [
|
|
SyncMode("Disabled", SyncType.disabled, Duration.zero),
|
|
SyncMode("Unobtrusive", SyncType.unobtrusive, Duration(days: 1)),
|
|
SyncMode("Aggressive", SyncType.aggressive, Duration(hours: 1)),
|
|
];
|
|
}
|