diff --git a/CHANGELOG.md b/CHANGELOG.md index f2dade0..3494d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.11.0] + +* Added `hasUnsyncedChanges()` method. + ## [1.10.0] * Added `isPending` and `syncCompletedDate` fields in `SyncStateInfo`. diff --git a/lib/src/sync_repository.dart b/lib/src/sync_repository.dart index ce96de3..ab7d0ce 100644 --- a/lib/src/sync_repository.dart +++ b/lib/src/sync_repository.dart @@ -93,4 +93,14 @@ abstract class SyncRepository { /// Synchronization is considered complete if there is nothing /// to send to the server and nothing to take from it, including files. Future get lastSyncCompletedDate; + + /// Checks whether all local data and associated files are fully synchronized with the remote. + /// + /// Returns `false` if no new local changes have been made since the last synchronization + /// and there is no new data or file to upload to the remote. + /// + /// This method **does not** check the remote for new updates + /// and does **not** consider the download status of data or files from the remote. + /// It only evaluates the local state against the last known synchronization. + Future hasUnsyncedChanges(); } diff --git a/pubspec.yaml b/pubspec.yaml index 278ec1c..8012699 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: in_sync_interface description: An interface for synchronization functional. Used by in_sync. -version: 1.10.0 +version: 1.11.0 homepage: https://github.com/innim/ repository: https://github.com/Innim/in_sync_interface issue_tracker: https://github.com/Innim/in_sync_interface/issues