refactor: Remove deprecated fluffybox
This commit is contained in:
parent
fc1146fe94
commit
e6182db16b
|
|
@ -10,7 +10,7 @@ void main() async {
|
|||
'Matrix Example Chat',
|
||||
databaseBuilder: (_) async {
|
||||
final dir = await getApplicationSupportDirectory();
|
||||
final db = FluffyBoxDatabase('matrix_example_chat', dir.path);
|
||||
final db = HiveCollectionsDatabase('matrix_example_chat', dir.path);
|
||||
await db.open();
|
||||
return db;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ export 'package:matrix_api_lite/matrix_api_lite.dart';
|
|||
export 'src/client.dart';
|
||||
export 'src/database/database_api.dart';
|
||||
export 'src/database/hive_database.dart';
|
||||
export 'src/database/fluffybox_database.dart';
|
||||
export 'src/database/hive_collections_database.dart';
|
||||
export 'src/event.dart';
|
||||
export 'src/presence.dart';
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -15,7 +15,6 @@ dependencies:
|
|||
collection: ^1.15.0
|
||||
crypto: ^3.0.0
|
||||
ffi: ^2.0.0
|
||||
fluffybox: ^0.4.3
|
||||
hive: ^2.2.3
|
||||
html: ^0.15.0
|
||||
html_unescape: ^2.0.0
|
||||
|
|
|
|||
|
|
@ -32,11 +32,6 @@ void main() {
|
|||
getHiveCollectionsDatabase(null),
|
||||
);
|
||||
});
|
||||
group('FluffyBox Database Test', () {
|
||||
testDatabase(
|
||||
getFluffyBoxDatabase(null),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Future<bool> olmEnabled() async {
|
||||
|
|
|
|||
|
|
@ -44,21 +44,6 @@ Future<HiveCollectionsDatabase> getHiveCollectionsDatabase(Client? c) async {
|
|||
return db;
|
||||
}
|
||||
|
||||
// ignore: deprecated_member_use_from_same_package
|
||||
Future<FluffyBoxDatabase> getFluffyBoxDatabase(Client? c) async {
|
||||
final fileSystem = MemoryFileSystem();
|
||||
final testHivePath =
|
||||
'${fileSystem.path}/build/.test_store/${Random().nextDouble()}';
|
||||
Directory(testHivePath).createSync(recursive: true);
|
||||
// ignore: deprecated_member_use_from_same_package
|
||||
final db = FluffyBoxDatabase(
|
||||
'unit_test.${c?.hashCode}',
|
||||
testHivePath,
|
||||
);
|
||||
await db.open();
|
||||
return db;
|
||||
}
|
||||
|
||||
// ignore: deprecated_member_use_from_same_package
|
||||
Future<FamedlySdkHiveDatabase> getHiveDatabase(Client? c) async {
|
||||
if (!hiveInitialized) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue