From a103eb971c0cfbdd53b1258b2a717b4a3f14b806 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 15 Aug 2022 11:26:50 +0200 Subject: [PATCH] chore: Migrate from Hive 2.2.1 back to FluffyBox --- lib/utils/client_manager.dart | 4 ++-- pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/utils/client_manager.dart b/lib/utils/client_manager.dart index 7e0b904d..3e043a44 100644 --- a/lib/utils/client_manager.dart +++ b/lib/utils/client_manager.dart @@ -104,8 +104,8 @@ abstract class ClientManager { EventTypes.RoomPowerLevels, }, logLevel: kReleaseMode ? Level.warning : Level.verbose, - databaseBuilder: FlutterHiveCollectionsDatabase.databaseBuilder, - legacyDatabaseBuilder: FlutterFluffyBoxDatabase.databaseBuilder, + databaseBuilder: FlutterFluffyBoxDatabase.databaseBuilder, + legacyDatabaseBuilder: FlutterHiveCollectionsDatabase.databaseBuilder, supportedLoginTypes: { AuthenticationTypes.password, if (PlatformInfos.isMobile || diff --git a/pubspec.lock b/pubspec.lock index 4c042ec1..233b668d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -839,7 +839,7 @@ packages: name: hive url: "https://pub.dartlang.org" source: hosted - version: "2.2.3" + version: "2.2.1" hive_flutter: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 4d29f87d..d6a9341c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -52,7 +52,7 @@ dependencies: future_loading_dialog: ^0.2.3 geolocator: ^7.6.2 handy_window: ^0.1.6 - hive: ^2.2.3 + hive: 2.2.1 hive_flutter: ^1.1.0 http: ^0.13.4 image: ^3.1.1