chore: Update Serverpod and prepare the release (#117)
This commit is contained in:
parent
519a8efca0
commit
2a6d66c79e
3 changed files with 358 additions and 323 deletions
|
|
@ -7,8 +7,6 @@ import 'package:serverpod_database/serverpod_database.dart'
|
|||
import 'package:serverpod_offline_sync_client/serverpod_offline_sync_client.dart';
|
||||
import 'package:serverpod_offline_sync_test_client/serverpod_offline_sync_test_client.dart';
|
||||
|
||||
import 'table_ops.dart' show demoSyncTables;
|
||||
|
||||
/// One local replica: a Serverpod client database wrapped with the
|
||||
/// `serverpod_offline_sync` CRDT layer, plus the calls that synchronize it.
|
||||
///
|
||||
|
|
@ -61,7 +59,7 @@ class OfflineReplica {
|
|||
);
|
||||
final crdtSession = CrdtDatabaseSession.wraps(
|
||||
rawSession,
|
||||
syncTables: demoSyncTables,
|
||||
syncTables: syncTables,
|
||||
persistentUserId: persistentUserId,
|
||||
);
|
||||
await crdtSession.db.initialize();
|
||||
|
|
|
|||
|
|
@ -261,8 +261,8 @@ final Map<String, TableOps> demoTableOps = {
|
|||
ops.name: ops,
|
||||
};
|
||||
|
||||
/// Tables synchronized by the demo, derived from [demoTableOps]. Mirrors the
|
||||
/// server `demoSyncTables`.
|
||||
/// Tables shown in the demo UI, derived from [demoTableOps]. The CRDT engine
|
||||
/// uses the generated [syncTables] list so it matches the server.
|
||||
final List<Table> demoSyncTables = [
|
||||
for (final ops in demoTableOps.values) ops.table,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ dependencies:
|
|||
http: ^1.5.0
|
||||
path: ^1.9.1
|
||||
path_provider: ^2.1.5
|
||||
serverpod_database: 4.0.0-rc.1
|
||||
serverpod_database: 4.0.0-rc.2
|
||||
serverpod_offline_sync_client:
|
||||
path: ../../packages/serverpod_offline_sync_client
|
||||
serverpod_offline_sync_test_client:
|
||||
|
|
|
|||
Loading…
Reference in a new issue