Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.11.0]

* Added `hasUnsyncedChanges()` method.

## [1.10.0]

* Added `isPending` and `syncCompletedDate` fields in `SyncStateInfo`.
Expand Down
10 changes: 10 additions & 0 deletions lib/src/sync_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<DateTime?> 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<bool> hasUnsyncedChanges();
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down