This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document how to use pigeon and update to the latest version.
This mainly splits out the test logic from the messages.dart file.
- Loading branch information
Showing
12 changed files
with
487 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Updating pigeon-generated files | ||
|
||
If you update files in the pigeons/ directory, run the following | ||
command in this directory: | ||
|
||
```bash | ||
flutter pub get | ||
flutter pub run pigeon --input pigeons/messages.dart | ||
(cd ../../../; ./script/incremental_build.sh format --travis --clang-format=clang-format-7) | ||
``` | ||
|
||
If you update pigeon itself, first update the pubspec.yaml by adding | ||
the following to the `dependency_overrides` section, assuming you have | ||
checked out the `flutter/packages` repo in a sibling directory to the | ||
`plugins` repo: | ||
|
||
```bash | ||
pigeon: | ||
path: | ||
../../../../packages/packages/pigeon/ | ||
``` | ||
|
||
Then, run the commands above. When you run `pub get` it should warn | ||
you that you're using an override. | ||
|
||
In either case, the configuration will be obtained automatically from | ||
the `pigeons/messages.dart` file (see `configurePigeon` at the bottom | ||
of that file). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.