diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index d94d1ab79ca8..366e387ce00b 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,3 +1,7 @@ +## 22.4.2 + +* Updates `README.md` to replace the deprecated `flutter pub run pigeon` command with `dart run pigeon`. + ## 22.4.1 * [dart] Fixes bug where special handling of ints is ignored if no custom types are used. diff --git a/packages/pigeon/README.md b/packages/pigeon/README.md index a3c4f341ade7..cc375f5e2faa 100644 --- a/packages/pigeon/README.md +++ b/packages/pigeon/README.md @@ -86,7 +86,7 @@ to the api to allow for multiple instances to be created and operate in parallel 1) Make a ".dart" file outside of your "lib" directory for defining the communication interface. 1) Run pigeon on your ".dart" file to generate the required Dart and - host-language code: `flutter pub get` then `flutter pub run pigeon` + host-language code: `flutter pub get` then `dart run pigeon` with suitable arguments. [Example](./example/README.md#Invocation). 1) Add the generated Dart code to `./lib` for compilation. 1) Implement the host-language code and add it to your build (see below). diff --git a/packages/pigeon/lib/generator_tools.dart b/packages/pigeon/lib/generator_tools.dart index b5029a68aaae..ef623942f4f2 100644 --- a/packages/pigeon/lib/generator_tools.dart +++ b/packages/pigeon/lib/generator_tools.dart @@ -14,7 +14,7 @@ import 'ast.dart'; /// The current version of pigeon. /// /// This must match the version in pubspec.yaml. -const String pigeonVersion = '22.4.1'; +const String pigeonVersion = '22.4.2'; /// Read all the content from [stdin] to a String. String readStdin() { diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index fef6a7c6fff1..2dae3a41b7d8 100644 --- a/packages/pigeon/pubspec.yaml +++ b/packages/pigeon/pubspec.yaml @@ -2,7 +2,7 @@ name: pigeon description: Code generator tool to make communication between Flutter and the host platform type-safe and easier. repository: https://github.com/flutter/packages/tree/main/packages/pigeon issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+pigeon%22 -version: 22.4.1 # This must match the version in lib/generator_tools.dart +version: 22.4.2 # This must match the version in lib/generator_tools.dart environment: sdk: ^3.3.0