-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Protobuf Editions (#284)
This PR adds support for Protobuf Editions to Connect-Swift plugins. There is no change to generated outputs in this PR, but it adds `supportsEditions` and `supportedEditionRange` specifications in the `Generator` class to ensure the Connect plugins can run with Protobuf files that use Editions. SwiftProtobuf also deprecated some usages of `Google_Protobuf_Compiler_CodeGeneratorResponse`: > 'Google_Protobuf_Compiler_CodeGeneratorResponse.init(files:supportedFeatures:)' is deprecated: Please move your plugin to the CodeGenerator interface As part of these changes, I migrated over to using `CodeGenerator` in order to be able to specify the new Editions-related variables mentioned above. --------- Signed-off-by: Michael Rebello <[email protected]>
- Loading branch information
Showing
8 changed files
with
143 additions
and
206 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
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 was deleted.
Oops, something went wrong.
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.