Skip to content

Commit

Permalink
Merge pull request #5 from ShishkinDaniil/feature/add-last-sync-date
Browse files Browse the repository at this point in the history
Add lastSyncDate getter
  • Loading branch information
greymag committed Dec 19, 2023
2 parents 10d4038 + 016bb5b commit b697cee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.3.1] - 2023-12-19

* Add `lastSyncDate` getter.

## [1.3.0+1] - 2023-12-14

* A class `SyncStateInfo` now abstract.
Expand Down
3 changes: 3 additions & 0 deletions lib/src/sync_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ abstract class SyncRepository {

/// Returns the synchronization job status stream.
Stream<SyncStateInfo> get state;

/// Returns the date of the last synchronization with device time.
Future<DateTime?> get lastSyncDate;
}
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.3.0+1
version: 1.3.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

0 comments on commit b697cee

Please sign in to comment.