-
Notifications
You must be signed in to change notification settings - Fork 199
Add well-known type support #1081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b46f928
Copy WKT protos
osa1 555ec32
Add wkts
osa1 560c77b
Special case imports
osa1 f092f01
Remove test copies of wkts
osa1 45b18bf
Disable prefer_relative_imports lint
osa1 2fae3a3
Bump versions, update changelogs
osa1 7a51c98
Update pregenerated
osa1 ceea73b
Fix markdown
osa1 eeca935
Remove TODO, importing just pb.dart is fine
osa1 5d0d3d2
Update test proto
osa1 784c3f7
Update output config with the internal version
osa1 783ebd2
Add a word of documentation to well_known_types lib
osa1 e2a881f
Update documentatin
osa1 5cecd08
Delete wkt lib
osa1 fcf8955
Don't generate empty enum files
osa1 2240ba8
Revert enum generation part form the last commit
osa1 e0047ec
Update script to remove empty enums
osa1 f066826
Merge remote-tracking branch 'origin/master' into wkts
osa1 060695e
Update ignores
osa1 412fa32
Whitespace
osa1 bfa0232
Update goldens
osa1 e4c3155
Bump protobuf dep in protoc_plugin
osa1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,4 +4,3 @@ linter: | |
| rules: | ||
| - avoid_bool_literals_in_conditional_expressions | ||
| - comment_references | ||
| - prefer_relative_imports | ||
This file contains hidden or 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 hidden or 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,24 @@ | ||
| #!/bin/bash | ||
|
|
||
| # This scripts generates the classes for well-known protobuf types which are | ||
| # included in the package. | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| mkdir -p lib/well_known_types/google/protobuf | ||
|
|
||
| protoc \ | ||
| --dart_out=lib/well_known_types \ | ||
| --plugin=protoc-gen-dart=$(realpath '../protoc_plugin/bin/protoc-gen-dart-debug') \ | ||
| google/protobuf/*.proto | ||
|
|
||
| # Remove empty .pbenum files. | ||
| rm lib/well_known_types/google/protobuf/any.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/api.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/duration.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/empty.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/field_mask.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/source_context.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/timestamp.pbenum.dart | ||
| rm lib/well_known_types/google/protobuf/wrappers.pbenum.dart |
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.