mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: termux compatibility (#472)
This commit is contained in:
@@ -95,6 +95,12 @@ Future<void> _initData() async {
|
||||
Hive.registerAdapter(ServerCustomAdapter()); // 7
|
||||
Hive.registerAdapter(WakeOnLanCfgAdapter()); // 8
|
||||
|
||||
try {
|
||||
/// Apps' data on other platforms are stored in a container that prevents
|
||||
/// access by other apps. Therefore, there is no need to encrypt the data.
|
||||
if (isLinux || isWindows) await SecureStore.init();
|
||||
} catch (_) {}
|
||||
|
||||
await Stores.setting.init();
|
||||
await Stores.server.init();
|
||||
await Stores.key.init();
|
||||
|
||||
Reference in New Issue
Block a user