mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-05 07:34:23 +00:00
feat(platform): Print storage path before Hive initialization
This commit is contained in:
parent
06a857aa8c
commit
d8660b9f3a
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue