From 5e3d6fa4c93371dba82e7e5dffecfbe16ee9057b Mon Sep 17 00:00:00 2001 From: Navaron Bracke Date: Wed, 28 Aug 2024 11:43:38 +0200 Subject: [PATCH 1/3] migrate to latest win32 version --- .../lib/src/flutter_secure_storage_windows_ffi.dart | 8 ++------ flutter_secure_storage_windows/pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart b/flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart index ee398493..40f7ad0b 100644 --- a/flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart +++ b/flutter_secure_storage_windows/lib/src/flutter_secure_storage_windows_ffi.dart @@ -246,9 +246,7 @@ class DpapiJsonFileMapStorage extends MapStorage { if (plainTextBlob.ref.pbData.address == NULL) { throw WindowsException( - // TODO: New member requires win32 ^5.4.0 - // ignore: deprecated_member_use - ERROR_OUTOFMEMORY, + WIN32_ERROR.ERROR_OUTOFMEMORY, message: 'Failure on CryptUnprotectData()', ); } @@ -350,9 +348,7 @@ class DpapiJsonFileMapStorage extends MapStorage { if (encryptedTextBlob.ref.pbData.address == NULL) { throw WindowsException( - // TODO: New member requires win32 ^5.4.0 - // ignore: deprecated_member_use - ERROR_OUTOFMEMORY, + WIN32_ERROR.ERROR_OUTOFMEMORY, message: 'Failure on CryptProtectData()', ); } diff --git a/flutter_secure_storage_windows/pubspec.yaml b/flutter_secure_storage_windows/pubspec.yaml index 0090f24e..f8a8a9dc 100644 --- a/flutter_secure_storage_windows/pubspec.yaml +++ b/flutter_secure_storage_windows/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: flutter_secure_storage_platform_interface: ^1.1.0 path: ^1.8.0 path_provider: ^2.0.0 - win32: ^5.0.0 + win32: ^5.5.4 dev_dependencies: flutter_test: From f68e244dd0966955f8180b4c85af17fadd94ee91 Mon Sep 17 00:00:00 2001 From: Navaron Bracke Date: Wed, 28 Aug 2024 11:45:24 +0200 Subject: [PATCH 2/3] adjust flutter_secure_storage_windows to use newer flutter constraint --- flutter_secure_storage_windows/example/pubspec.yaml | 4 ++-- flutter_secure_storage_windows/pubspec.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter_secure_storage_windows/example/pubspec.yaml b/flutter_secure_storage_windows/example/pubspec.yaml index 9d3d0a5c..541e71be 100644 --- a/flutter_secure_storage_windows/example/pubspec.yaml +++ b/flutter_secure_storage_windows/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_secure_storage_windows plugin. publish_to: 'none' environment: - sdk: '>=2.12.0 <3.0.0' - flutter: ">=2.0.0" + sdk: '>=3.4.0 <4.0.0' + flutter: '>=3.22.0' dependencies: flutter: diff --git a/flutter_secure_storage_windows/pubspec.yaml b/flutter_secure_storage_windows/pubspec.yaml index f8a8a9dc..95a7eef4 100644 --- a/flutter_secure_storage_windows/pubspec.yaml +++ b/flutter_secure_storage_windows/pubspec.yaml @@ -4,8 +4,8 @@ repository: https://github.com/mogol/flutter_secure_storage version: 3.1.2 environment: - sdk: '>=2.12.0 <4.0.0' - flutter: ">=2.0.0" + sdk: '>=3.4.0 <4.0.0' + flutter: '>=3.22.0' dependencies: ffi: ^2.0.0 From f1abf1b59021fefa85b4bee66887893745ca4475 Mon Sep 17 00:00:00 2001 From: Navaron Bracke Date: Wed, 28 Aug 2024 11:47:13 +0200 Subject: [PATCH 3/3] update changelog --- flutter_secure_storage_windows/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flutter_secure_storage_windows/CHANGELOG.md b/flutter_secure_storage_windows/CHANGELOG.md index 399347a6..e612dc78 100644 --- a/flutter_secure_storage_windows/CHANGELOG.md +++ b/flutter_secure_storage_windows/CHANGELOG.md @@ -1,3 +1,6 @@ +## NEXT +Migrates to `win32` version 5.5.4 to support Dart 3.4 / Flutter 3.22.0. + ## 3.1.2 Reverts onCupertinoProtectedDataAvailabilityChanged and isCupertinoProtectedDataAvailable.