offline_sync_core 0.1.0
offline_sync_core: ^0.1.0 copied to clipboard
A robust, lightweight, and extensible offline-first caching and synchronization package for Flutter using Hive.
0.1.0 #
- Added
SyncTaskmodel with UUID generation, full JSON serialization, andcopyWithsupport. - Added
SyncQueuewith Hive-backed persistence for offline mutation queuing. - Added
SyncManagerwithconnectivity_plusnetwork listener, exponential backoff retry, and RxDartsyncStream. - Added
SQLiteStorage— fullStorageAdapterimplementation usingsqflite. - Added
SyncLoggersingleton with configurable logging levels (info, debug, warning, error). - Added
OfflineSyncConfigfor customizingmaxRetries,enableLogging,backgroundSyncEnabled, anddefaultTtl. - Added
InspectorControllerfor managing cache, queue, network status, and force sync triggers. - Added
InspectorScreen— full Flutter debug UI with Sync Queue tab and Network status tab. - Updated
OfflineSyncCorewithenqueue(),forceSync(),clearCache(), andconfigsupport. - Expanded unit tests to cover
SyncTask,SyncStatus, andCachePolicy.
0.0.1 #
- Initial release of
offline_sync_core. - Smart Caching with TTL support.
- Offline fallback logic serving expired cache on network failures.
- Extensible storage adapter layer (
StorageAdapter). - High-performance
HiveStorageimplementation out of the box.