offline_sync_core 0.1.6
offline_sync_core: ^0.1.6 copied to clipboard
A robust, production-ready Flutter package for offline-first caching and synchronization. Features smart TTL cache, offline sync queue with auto-retry, optimistic UI updates, periodic background sync, [...]
0.1.6 #
- Added
startPeriodicSync({Duration interval})toSyncManagerandOfflineSyncCore— automatically syncs pending queue at a fixed interval when internet is available. - Added
stopPeriodicSync()to cancel scheduled sync. - Added
put<T>()static method toOfflineSyncCorefor manual/optimistic local cache updates. - Updated example app to demonstrate Optimistic UI Update pattern.
0.1.5 #
- Fixed README.md profile image to use an absolute GitHub Raw URL for proper rendering on pub.dev.
0.1.4 #
- Fixed issues badge and repository link in README.md to use the correct GitHub repository URL.
0.1.3 #
- Added GitHub and LinkedIn badges to the README footer.
0.1.2 #
- Updated developer profile name to Pawan Kushwaha and added dynamic GitHub profile image.
0.1.1 #
- Updated README.md roadmap checkboxes and directory tree statuses to reflect fully implemented v0.1.0 features.
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.