Skip to content

Commit 750e0e2

Browse files
committed
fix(app): default impl for strong box
1 parent 7b738c0 commit 750e0e2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

flutter_secure_storage_platform_interface/lib/flutter_secure_storage_platform_interface.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ abstract class FlutterSecureStoragePlatform extends PlatformInterface {
126126
///
127127
/// Returns:
128128
/// - A [Future] that resolves to `true` if the device supports secure hardware-backed storage, or `false` otherwise.
129-
Future<bool> isStrongBoxSupported();
129+
Future<bool> isStrongBoxSupported() {
130+
throw UnsupportedError('isStrongBoxSupported() is not available on this platform');
131+
}
130132
}

flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart

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

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

0 commit comments

Comments
 (0)