From bd60c6753585a794d5ee8b7284f835c0be88201f Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 12 Jun 2021 12:14:36 +0200 Subject: [PATCH] chore: Fix web hive encryption --- lib/utils/database/flutter_famedly_sdk_hive_database.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/database/flutter_famedly_sdk_hive_database.dart b/lib/utils/database/flutter_famedly_sdk_hive_database.dart index 3299881a..7d921eb5 100644 --- a/lib/utils/database/flutter_famedly_sdk_hive_database.dart +++ b/lib/utils/database/flutter_famedly_sdk_hive_database.dart @@ -50,8 +50,8 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase { ); hiverCipher = HiveAesCipher(encryptionKey); } on MissingPluginException catch (_) { - Logs() - .i('Hive encryption is not supported on ${Platform.operatingSystem}'); + Logs().i( + 'Hive encryption is not supported on ${kIsWeb ? 'Web' : Platform.operatingSystem}'); } final db = FamedlySdkHiveDatabase( client.clientName,