Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

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

Footnotes

  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. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

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

Incredible work!

@stuartmorgan-g stuartmorgan-g changed the title Modernize Obj-C generation headers [pigeon] Modernize Obj-C generation headers Jan 22, 2026
@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 22, 2026
@auto-submit auto-submit bot merged commit d0c7d1f into flutter:main Jan 22, 2026
81 checks passed
linchen00 pushed a commit to linchen00/packages that referenced this pull request Jan 23, 2026
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)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 23, 2026
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jan 23, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: pigeon platform-ios platform-macos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants