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
477 additions
and
372 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,44 @@ | ||
## 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 --dart_null_safety --input pigeons/messages.dart | ||
(cd ../../../; ./script/incremental_build.sh format --travis --clang-format=clang-format-7) | ||
``` | ||
|
||
If you update pigeon itself, temporarily 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. If you do this, you will need to | ||
publish pigeon before you can land the updates to this package, since | ||
the CI tests run the analysis using latest published version of | ||
pigeon, not your version or the version on master. | ||
|
||
In either case, the configuration will be obtained automatically from | ||
the `pigeons/messages.dart` file (see `configurePigeon` at the bottom | ||
of that file). | ||
|
||
While contributing, you may also want to set the following dependency | ||
overrides: | ||
|
||
```yaml | ||
dependency_overrides: | ||
video_player_platform_interface: | ||
path: | ||
../video_player_platform_interface | ||
video_player_web: | ||
path: | ||
../video_player_web | ||
``` |
2 changes: 1 addition & 1 deletion
2
...eo_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java
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.