From b25b4aceb863b66670cc2a5d1b065d0cd44fa292 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Sat, 2 Oct 2021 19:24:24 +0200 Subject: [PATCH 1/2] bug: annotate int for flutter 2.5 requirement --- .../package_info_plus/package_info_plus_windows/CHANGELOG.md | 3 +++ .../package_info_plus_windows/lib/src/file_version_info.dart | 4 ++-- .../package_info_plus/package_info_plus_windows/pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md b/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md index fe3bc0f898..24c033dc05 100644 --- a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md +++ b/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.4 +- Annotate int with external. + ## 1.0.3 - Add `buildSignature` to Android package info to retrieve the signing certifiate SHA1 at runtime. diff --git a/packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart b/packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart index ccc85a1368..d863fdfe61 100644 --- a/packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart +++ b/packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart @@ -10,10 +10,10 @@ part of package_info_plus_windows; class _LANGANDCODEPAGE extends Struct { @Uint16() - int? wLanguage; + external int? wLanguage; @Uint16() - int? wCodePage; + external int? wCodePage; } final _kernel32 = DynamicLibrary.open('kernel32.dll'); diff --git a/packages/package_info_plus/package_info_plus_windows/pubspec.yaml b/packages/package_info_plus/package_info_plus_windows/pubspec.yaml index 18c4125309..04240684fe 100644 --- a/packages/package_info_plus/package_info_plus_windows/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus_windows/pubspec.yaml @@ -1,6 +1,6 @@ name: package_info_plus_windows description: Windows implementation of the package_info_plus plugin -version: 1.0.3 +version: 1.0.4 homepage: https://plus.fluttercommunity.dev/ repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ From fcbb5825676696e8f429d7beb6ca7b6c374f41db Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Sun, 3 Oct 2021 12:18:43 +0200 Subject: [PATCH 2/2] imp: bump version and update changelog --- packages/package_info_plus/package_info_plus/CHANGELOG.md | 4 ++++ packages/package_info_plus/package_info_plus/pubspec.yaml | 4 ++-- .../package_info_plus/package_info_plus_windows/CHANGELOG.md | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/package_info_plus/package_info_plus/CHANGELOG.md b/packages/package_info_plus/package_info_plus/CHANGELOG.md index 49c1b428d1..d1ce4b1654 100644 --- a/packages/package_info_plus/package_info_plus/CHANGELOG.md +++ b/packages/package_info_plus/package_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.7 + +- Windows: Annotate int with external in preparation of Flutter 2.5 + ## 1.0.6 - Web: Fixed url resolving for the version.json diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index 25087e65a4..42e3cef822 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: package_info_plus description: Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android. -version: 1.0.6 +version: 1.0.7 homepage: https://plus.fluttercommunity.dev/ repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ @@ -27,7 +27,7 @@ dependencies: package_info_plus_platform_interface: ^1.0.2 package_info_plus_linux: ^1.0.3 package_info_plus_macos: ^1.1.1 - package_info_plus_windows: ^1.0.3 + package_info_plus_windows: ^1.0.4 package_info_plus_web: ^1.0.4 dev_dependencies: diff --git a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md b/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md index 24c033dc05..517b1b3f9a 100644 --- a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md +++ b/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md @@ -1,7 +1,9 @@ ## 1.0.4 -- Annotate int with external. + +- Annotate int with external in preparation of Flutter 2.5 ## 1.0.3 + - Add `buildSignature` to Android package info to retrieve the signing certifiate SHA1 at runtime. ## 1.0.2