flutter_cloud_preferences 0.2.0
flutter_cloud_preferences: ^0.2.0 copied to clipboard
Key-value preferences that survive reinstalls and new devices, backed up to iCloud key-value storage on iOS and macOS and Android Auto Backup on Android.
0.2.0 #
CloudPreferences.configure()sets the store's options once, before the firstgetInstance().- Local-only keys:
configure(localOnlyKeys: {...})keeps values such as auth tokens and device IDs on the device. They are never mirrored to iCloud, never included in Auto Backup or device backups, and never restored. getInstance(liveSync:)is deprecated and will be removed in 1.0; useconfigure(liveSync: true).- iOS and macOS: a key the app removes before the background restore arrives is no longer brought back by it.
- iOS and macOS: values written before iCloud's first download are written to iCloud again once it arrives, instead of being lost there.
- iOS and macOS: a restore that has not arrived when the app is closed now continues on the next launch.
0.1.0 #
- First release.
CloudPreferences: key-value preferences with cached synchronous reads forString,bool,int,double,List<String>andUint8List.- iOS and macOS: values stored in
UserDefaultsand mirrored to iCloud key-value storage; restored on a fresh install and reported ononRestored; opt-in live sync withchanges. - Android: values stored in a SharedPreferences file that Android Auto Backup restores on reinstall and new devices.
- iCloud key-value storage limits (64-byte keys, 1024 keys, 1 MB) enforced on every platform.