diff --git a/lib/sdk/di/injector.config.dart b/lib/sdk/di/injector.config.dart index 50e25dcf..fd76504e 100644 --- a/lib/sdk/di/injector.config.dart +++ b/lib/sdk/di/injector.config.dart @@ -431,6 +431,7 @@ extension GetItInjectableX on _i1.GetIt { gh.factory<_i10.ClaimStateMapper>(() => _i10.ClaimStateMapper()); gh.factory<_i11.Client>(() => networkModule.client); gh.factory<_i12.CreatePathWrapper>(() => _i12.CreatePathWrapper()); + gh.lazySingletonAsync<_i13.Database>(() => databaseModule.database()); gh.factoryParamAsync<_i13.Database, String?, String?>( ( identifier, @@ -442,7 +443,6 @@ extension GetItInjectableX on _i1.GetIt { ), instanceName: 'polygonIdSdkIdentity', ); - gh.lazySingletonAsync<_i13.Database>(() => databaseModule.database()); gh.factory<_i12.DestinationPathDataSource>( () => _i12.DestinationPathDataSource(gh<_i12.CreatePathWrapper>())); gh.factory<_i14.DidProfileInfoInteractedDidFilterMapper>( @@ -512,29 +512,29 @@ extension GetItInjectableX on _i1.GetIt { databaseModule.getCodec(privateKey)); gh.lazySingleton<_i47.StacktraceManager>(() => _i47.StacktraceManager()); gh.factory<_i48.StateIdentifierMapper>(() => _i48.StateIdentifierMapper()); - gh.factory<_i13.StoreRef>>( - () => databaseModule.didProfileInfoStore, - instanceName: 'didProfileInfoStore', - ); gh.factory<_i13.StoreRef>>( () => databaseModule.interactionStore, instanceName: 'interactionStore', ); gh.factory<_i13.StoreRef>>( - () => databaseModule.claimStore, - instanceName: 'claimStore', + () => databaseModule.profileStore, + instanceName: 'profilesStore', ); - gh.factory<_i13.StoreRef>( - () => databaseModule.keyValueStore, - instanceName: 'keyValueStore', + gh.factory<_i13.StoreRef>>( + () => databaseModule.didProfileInfoStore, + instanceName: 'didProfileInfoStore', ); gh.factory<_i13.StoreRef>>( () => databaseModule.identityStore, instanceName: 'identityStore', ); + gh.factory<_i13.StoreRef>( + () => databaseModule.keyValueStore, + instanceName: 'keyValueStore', + ); gh.factory<_i13.StoreRef>>( - () => databaseModule.profileStore, - instanceName: 'profilesStore', + () => databaseModule.claimStore, + instanceName: 'claimStore', ); gh.factory<_i49.TreeStateMapper>(() => _i49.TreeStateMapper()); gh.factory<_i50.TreeTypeMapper>(() => _i50.TreeTypeMapper()); diff --git a/pubspec.yaml b/pubspec.yaml index 29742850..0a73f9b7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,7 +46,7 @@ dependencies: flutter_rapidsnark: git: url: git@github.com:iden3/flutter-rapidsnark.git - ref: main + ref: 0.0.1-alpha.1 dev_dependencies: flutter_test: