-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[pigeon] Modernize Obj-C generation headers #10857
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] Modernize Obj-C generation headers #10857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request modernizes the Objective-C code generation by replacing old-style framework imports with module imports (@import) and removes the now-obsolete ARC check. The changes are correctly implemented in the generator, and the generated files are updated accordingly. A new test has been added to verify the use of module imports, which is a great addition. My only concern is a version mismatch between pubspec.yaml and lib/src/generator_tools.dart, which I've detailed in a specific comment.
tarrinneal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible work!
Replaces the older style of framework imports (`#import <Foo/Foo.h>`) with the newer module style (`@import Foo;`). Also opportunistically removes the ARC check; it's wildly unlikely that anyone writing a new plugin would disable ARC. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. (cherry picked from commit d0c7d1f)
flutter/packages@9010299...5af5f50 2026-01-23 6655696+guidezpl@users.noreply.github.com Update Google Fonts to v8.0.0 with new and removed fonts (flutter/packages#10785) 2026-01-22 stuartmorgan@google.com [pigeon] Modernize Obj-C generation headers (flutter/packages#10857) 2026-01-22 47866232+chunhtai@users.noreply.github.com Fixes sync_release_pr workflow yaml formatting (flutter/packages#10855) 2026-01-22 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers swift migration - part 6 (flutter/packages#10752) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Replaces the older style of framework imports (
#import <Foo/Foo.h>) with the newer module style (@import Foo;).Also opportunistically removes the ARC check; it's wildly unlikely that anyone writing a new plugin would disable ARC.
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3