From d8660b9f3aa7d112c434093cab412f9070653682 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Fri, 21 Jul 2023 14:44:01 -0300 Subject: [PATCH] feat(platform): Print storage path before Hive initialization --- lib/config/hive_config.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/hive_config.dart b/lib/config/hive_config.dart index 5d6e3eca..01118bba 100644 --- a/lib/config/hive_config.dart +++ b/lib/config/hive_config.dart @@ -12,7 +12,9 @@ import 'package:selfprivacy/utils/platform_adapter.dart'; class HiveConfig { static Future 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());