Skip to content

Commit

Permalink
[pigeon] chore(readme): deprecated command of running pigeon (flutter…
Browse files Browse the repository at this point in the history
…#7761)

*Update outdated command in `README.md` of running [pigeon](https://pub.dev/packages/pigeon).*

Same as flutter#7709
  • Loading branch information
EchoEllet authored Oct 3, 2024
1 parent 700994c commit ff456a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/pigeon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/lib/generator_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff456a1

Please sign in to comment.