refactor: Switch to Hive Collections DB
This commit is contained in:
parent
db8c8dda22
commit
c249ebb97c
29 changed files with 347 additions and 216 deletions
|
|
@ -14,6 +14,7 @@ import 'package:path_provider/path_provider.dart';
|
|||
import '../client_manager.dart';
|
||||
import '../famedlysdk_store.dart';
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
||||
FlutterFluffyBoxDatabase(
|
||||
String name,
|
||||
|
|
@ -27,6 +28,7 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||
|
||||
static const String _cipherStorageKey = 'database_encryption_key';
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
static Future<FluffyBoxDatabase> databaseBuilder(Client client) async {
|
||||
Logs().d('Open FluffyBox...');
|
||||
fluffybox.HiveAesCipher? hiverCipher;
|
||||
|
|
@ -59,6 +61,7 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||
rethrow;
|
||||
}
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
final db = FluffyBoxDatabase(
|
||||
'fluffybox_${client.clientName.replaceAll(' ', '_').toLowerCase()}',
|
||||
await _findDatabasePath(client),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue