|
|
@ -34,6 +34,9 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
HiveCipher hiverCipher;
|
|
|
|
HiveCipher hiverCipher;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
// Workaround for secure storage is calling Platform.operatingSystem on web
|
|
|
|
|
|
|
|
if (kIsWeb) throw MissingPluginException();
|
|
|
|
|
|
|
|
|
|
|
|
final secureStorage = const FlutterSecureStorage();
|
|
|
|
final secureStorage = const FlutterSecureStorage();
|
|
|
|
final containsEncryptionKey =
|
|
|
|
final containsEncryptionKey =
|
|
|
|
await secureStorage.containsKey(key: _hiveCipherStorageKey);
|
|
|
|
await secureStorage.containsKey(key: _hiveCipherStorageKey);
|
|
|
|