Files
SpotiFLAC-Mobile/lib/services/secure_storage_options.dart
zarzet 840b28d549 feat(desktop): enable notifications and gate mobile-only plugins
Initialize flutter_local_notifications for macOS, Linux and Windows
(AUMID com.zarz.mornye with a stable GUID) and post result notifications
on desktop; live progress stays in the window. Open files through
url_launcher, skip audio_session, and use the login keychain on macOS.
2026-10-20 13:44:30 +07:00

19 lines
796 B
Dart

import 'package:flutter_secure_storage/flutter_secure_storage.dart';
// All clients share the default Android storage namespace. A failed read or
// migration in any client must not erase the extension master key stored there.
const secureStorageAndroidOptions = AndroidOptions(
resetOnError: false,
migrateOnAlgorithmChange: true,
migrateWithBackup: true,
keyCipherAlgorithm: KeyCipherAlgorithm.RSA_ECB_OAEPwithSHA_256andMGF1Padding,
storageCipherAlgorithm: StorageCipherAlgorithm.AES_GCM_NoPadding,
);
// The data protection keychain needs a signed keychain-access-groups
// entitlement; the login keychain works for Developer ID and local builds.
// Linux keeps the default libsecret options.
const secureStorageMacOsOptions = MacOsOptions(
usesDataProtectionKeychain: false,
);