split singleton into a different class

This commit is contained in:
shenlong-tanwen
2026-05-13 00:56:56 +05:30
parent d0f0e59334
commit 8fa425fbf7
18 changed files with 48 additions and 45 deletions
@@ -38,7 +38,7 @@ void main() {
);
db = Drift(DatabaseConnection(NativeDatabase.memory(), closeStreamsSynchronously: true));
await StoreService.init(storeRepository: DriftStoreRepository(db));
await MetadataRepository.ensureInitialized(db);
await MetadataStore.ensureInitialized(db);
await Store.put(StoreKey.serverEndpoint, 'http://test-server.com');
await Store.put(StoreKey.deviceId, 'test-device-id');