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.5.1]
Comment thread
greymag marked this conversation as resolved.

* Add `lastSyncCompletedDate` getter.

## [1.5.0+1]

* Added deprecated `SyncError.updateLinksExeption` for compatibility with previous data from db.
Expand Down
12 changes: 12 additions & 0 deletions lib/src/sync_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,17 @@ abstract class SyncRepository {
Stream<SyncStateInfo> get state;

/// Returns the date of the last synchronization with device time.
Comment thread
stokkato marked this conversation as resolved.
///
/// This is the most recent date when a chunk of data was received from the server.
/// It does not indicate whether a full sync occurred —
/// meaning both sending all local data and receiving all server data.
/// See [lastSyncCompletedDate] for the time of the last successful full sync.
Future<DateTime?> get lastSyncDate;

/// Returns the date of the last successful synchronization complete
/// with device time.
///
/// 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;
}
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.5.0+1
version: 1.5.1
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