mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: secure store
This commit is contained in:
@@ -74,7 +74,7 @@ Future<void> initApp() async {
|
||||
await _initMacOSWindow();
|
||||
|
||||
// Base of all data.
|
||||
await _initHive();
|
||||
await _initDb();
|
||||
await setupLocator();
|
||||
_setupLogger();
|
||||
_setupProviders();
|
||||
@@ -98,7 +98,8 @@ void _setupProviders() {
|
||||
Pros.key.load();
|
||||
}
|
||||
|
||||
Future<void> _initHive() async {
|
||||
Future<void> _initDb() async {
|
||||
// await SecureStore.init();
|
||||
await Hive.initFlutter();
|
||||
// Ordered by typeId
|
||||
Hive.registerAdapter(PrivateKeyInfoAdapter()); // 1
|
||||
|
||||
Reference in New Issue
Block a user