Skip to content

Commit 8f622c8

Browse files
Merge branch '157-fix-sync-filter-parameter'
2 parents c9155a0 + 83e1acd commit 8f622c8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

objectbox/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## latest
22

3+
### Sync
4+
5+
* SyncClient: actually configure Sync filters when passing them to `Sync.client` and related helper
6+
methods.
7+
38
## 5.0.1-dev.0 (2025-10-29)
49

510
* Generator: migrate to `analyzer` 8 APIs. Require at least `analyzer` 8.1.1 and `source_gen` 4.0.1.

objectbox/lib/src/native/sync.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ class SyncClient {
190190

191191
/// Creates a Sync client associated with the given store and options.
192192
/// This does not initiate any connection attempts yet: call start() to do so.
193-
SyncClient._(
194-
this._store, List<String> serverUrls, List<SyncCredentials> credentials,
195-
{Map<String, String>? filterVariables}) {
193+
SyncClient._(this._store, List<String> serverUrls,
194+
List<SyncCredentials> credentials, Map<String, String>? filterVariables) {
196195
if (serverUrls.isEmpty) {
197196
throw ArgumentError.value(
198197
serverUrls, "serverUrls", "Provide at least one server URL");
@@ -789,7 +788,8 @@ class Sync {
789788
if (syncClientsStorage.containsKey(store)) {
790789
throw StateError('Only one sync client can be active for a store');
791790
}
792-
final client = SyncClient._(store, serverUrls, credentials);
791+
final client =
792+
SyncClient._(store, serverUrls, credentials, filterVariables);
793793
syncClientsStorage[store] = client;
794794
InternalStoreAccess.addCloseListener(store, client, client.close);
795795
return client;

0 commit comments

Comments
 (0)