mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +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 {
|
class HiveConfig {
|
||||||
static Future<void> init() async {
|
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(UserAdapter());
|
||||||
Hive.registerAdapter(ServerHostingDetailsAdapter());
|
Hive.registerAdapter(ServerHostingDetailsAdapter());
|
||||||
Hive.registerAdapter(ServerDomainAdapter());
|
Hive.registerAdapter(ServerDomainAdapter());
|
||||||
|
|
Loading…
Reference in a new issue