mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-04 09:10:48 +02:00
fix(security): encrypt extension storage at rest
This commit is contained in:
@@ -67,7 +67,11 @@ class ExtensionNotifier extends Notifier<ExtensionState> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> initialize(String extensionsDir, String dataDir) async {
|
||||
Future<void> initialize(
|
||||
String extensionsDir,
|
||||
String dataDir, {
|
||||
required String masterKey,
|
||||
}) async {
|
||||
if (state.isInitialized) return;
|
||||
if (_initializationCompleter != null) {
|
||||
await _initializationCompleter!.future;
|
||||
@@ -100,7 +104,11 @@ class ExtensionNotifier extends Notifier<ExtensionState> {
|
||||
_log.w('Runtime state restore unavailable: $e');
|
||||
}
|
||||
}
|
||||
await PlatformBridge.initExtensionSystem(extensionsDir, dataDir);
|
||||
await PlatformBridge.initExtensionSystem(
|
||||
extensionsDir,
|
||||
dataDir,
|
||||
masterKey: masterKey,
|
||||
);
|
||||
await loadExtensions(extensionsDir);
|
||||
await loadProviderPriority();
|
||||
await loadMetadataProviderPriority();
|
||||
|
||||
Reference in New Issue
Block a user