mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-17 06:49:34 +00:00
hive切换hive_ce
This commit is contained in:
parent
3362a254ff
commit
6efa41e035
30 changed files with 1403 additions and 2566 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:hive/hive.dart';
|
||||
import 'package:hive_ce_flutter/hive_flutter.dart';
|
||||
import 'package:vaani/db/available_boxes.dart';
|
||||
import 'package:vaani/globals.dart';
|
||||
|
||||
import 'register_models.dart';
|
||||
|
|
@ -13,8 +14,10 @@ Future initStorage() async {
|
|||
// );
|
||||
// await storageDir.create(recursive: true);
|
||||
|
||||
Hive.defaultDirectory = appDocumentsDir.path;
|
||||
appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
||||
Hive.initFlutter(appName);
|
||||
// Hive.defaultDirectory = appDocumentsDir.path;
|
||||
// appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
||||
|
||||
await registerModels();
|
||||
await AvailableHiveBoxes.init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue