Skip to content

Commit 05a98d5

Browse files
committed
fix(app): emtpy impl strongbox windows
1 parent 0f80b5f commit 05a98d5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ class FlutterSecureStorageWindows extends FlutterSecureStoragePlatform {
178178
await _backwardCompatible.delete(key: key, options: options);
179179
}
180180
}
181+
182+
@override
183+
Future<bool> isStrongBoxSupported() async {
184+
throw UnsupportedError(
185+
'isStrongBoxSupported() is not available on this platform',
186+
);
187+
}
181188
}
182189

183190
/// Creates a custom instance of `FlutterSecureStorageWindows` for testing.

flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_stub.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ class FlutterSecureStorageWindows extends FlutterSecureStoragePlatform {
4949
}) =>
5050
Future.value();
5151

52+
@override
53+
Future<bool> isStrongBoxSupported() async {
54+
throw UnsupportedError(
55+
'isStrongBoxSupported() is not available on this platform',
56+
);
57+
}
58+
5259
// @override
5360
// Future<bool> isCupertinoProtectedDataAvailable() => Future.value(true);
5461
//

0 commit comments

Comments
 (0)