From a36a3ab1fc423105f610de201e4d89989557a1e4 Mon Sep 17 00:00:00 2001 From: philenius Date: Thu, 25 May 2023 12:12:36 +0200 Subject: [PATCH] update win32 dependency to latest major v5 --- CHANGELOG.md | 4 ++++ lib/src/windows/file_picker_windows.dart | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 324003b4..65a64d0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.3.2 +### Desktop (Windows) +Bumps the dependency `win32` to 5.0.2 ([#1281](https://github.com/miguelpruivo/flutter_file_picker/pull/1281)). + ## 5.3.1 Bump Dart SDK lower bound to <4.0.0 to support Dart 3 diff --git a/lib/src/windows/file_picker_windows.dart b/lib/src/windows/file_picker_windows.dart index 005725d1..2a2f8629 100644 --- a/lib/src/windows/file_picker_windows.dart +++ b/lib/src/windows/file_picker_windows.dart @@ -9,7 +9,7 @@ import 'package:file_picker/src/utils.dart'; import 'package:file_picker/src/exceptions.dart'; import 'package:file_picker/src/windows/file_picker_windows_ffi_types.dart'; import 'package:path/path.dart'; -import 'package:win32/winrt.dart'; +import 'package:win32/win32.dart'; FilePicker filePickerWithFFI() => FilePickerWindows(); diff --git a/pubspec.yaml b/pubspec.yaml index 69def9b0..383c8ba1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A package that allows you to use a native file explorer to pick sin homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker repository: https://github.com/miguelpruivo/flutter_file_picker issue_tracker: https://github.com/miguelpruivo/flutter_file_picker/issues -version: 5.3.1 +version: 5.3.2 dependencies: flutter: @@ -15,7 +15,7 @@ dependencies: plugin_platform_interface: ^2.1.4 ffi: ^2.0.1 path: ^1.8.2 - win32: ^4.1.3 + win32: '^5.0.2' dev_dependencies: lints: ^2.0.1