feat(platform): Print storage path before Hive initialization

pull/240/head
NaiJi ✨ 2023-07-21 14:44:01 -03:00
parent 06a857aa8c
commit d8660b9f3a
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ import 'package:selfprivacy/utils/platform_adapter.dart';
class HiveConfig {
static Future<void> init() async {
await Hive.initFlutter(PlatformAdapter.storagePath);
final String? storagePath = PlatformAdapter.storagePath;
print('HiveConfig: Custom storage path: $storagePath');
await Hive.initFlutter(storagePath);
Hive.registerAdapter(UserAdapter());
Hive.registerAdapter(ServerHostingDetailsAdapter());
Hive.registerAdapter(ServerDomainAdapter());