Skip to content
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

[pigeon] Moves all codec logic to singular custom codec #6600

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

tarrinneal
Copy link
Contributor

@tarrinneal tarrinneal commented Apr 23, 2024

[pigeon] Moves all codec logic to singular custom codec.

Also fixes a few small codec related bugs that have cropped up over time.

fixes flutter/flutter#147454
fixes flutter/flutter#147127
fixes flutter/flutter#147587
fixes flutter/flutter#148065

@jmagman jmagman mentioned this pull request May 6, 2024
11 tasks
@tarrinneal tarrinneal marked this pull request as ready for review May 16, 2024 21:32
@tarrinneal tarrinneal changed the title cc2 [pigeon] Moves all codec logic to singular custom codec May 16, 2024
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! It's awesome to see how much complexity and branching was removed from all over the generators.

@@ -2249,14 +2268,16 @@ ${_argParser.usage}''';
options = options.merge(PigeonOptions(
objcOptions: (options.objcOptions ?? const ObjcOptions()).merge(
ObjcOptions(
headerIncludePath: path.basename(options.objcHeaderOut!)))));
headerIncludePath: options.objcOptions?.headerIncludePath ??
path.basename(options.objcHeaderOut!)))));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a unit test that confirms this resolves flutter/flutter#147587?

When I played with it when I discovered the issue, I also had to change a few other things: flutter/flutter#147587 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to finish that part of the pr actually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants