-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[pigeon] Improves documentation of ProxyApi
and moves helper functions to a separate file
#9756
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] Improves documentation of ProxyApi
and moves helper functions to a separate file
#9756
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 is a great refactoring effort. Moving the ProxyAPI generation logic into a dedicated helper file (proxy_api_generator_helper.dart
) significantly improves the modularity and maintainability of the Dart generator. The extensive documentation updates are also a major improvement, making the concepts around ProxyAPIs much clearer for developers.
I've found one minor point of feedback regarding the wording in the CHANGELOG.md
to more accurately reflect the changes. Overall, this is a high-quality contribution.
packages/pigeon/CHANGELOG.md
Outdated
* Moves helper classes for generating Dart portion of ProxyAPIs. | ||
* Improves documentation of `ProxyApi` annotation and internal Dart ProxyAPI helper classes. |
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.
For clarity and accuracy, it would be better to refer to the moved code as "functions" rather than "classes", as the refactoring primarily involved moving top-level helper functions.
* Moves helper classes for generating Dart portion of ProxyAPIs. | |
* Improves documentation of `ProxyApi` annotation and internal Dart ProxyAPI helper classes. | |
* Moves helper functions for generating Dart portion of ProxyAPIs. | |
* Improves documentation of `ProxyApi` annotation and internal Dart ProxyAPI helper functions. |
ProxyApi
and moves helper functions to a separate file
/// 3. An InstanceManager that is a global collection that handles serializable | ||
/// references to the Dart proxy classes and the native type instances. This | ||
/// also provides automatic garbage collection of native type instances when its | ||
/// associated Dart proxy class instance is garbage collected. | ||
class ProxyApi { |
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.
@tarrinneal @stuartmorgan-g Let me know if this explanation of "what is a ProxyAPI" makes sense.
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.
Seems like good improvements
…per functions to a separate file (flutter/packages#9756)
flutter/packages@a114ac2...08a9b2c 2025-08-11 [email protected] [in_app_purchase_storekit] Add support for quantity in consumable product purchases (#171570) (flutter/packages#9698) 2025-08-11 [email protected] [pigeon] Improves documentation of `ProxyApi` and moves helper functions to a separate file (flutter/packages#9756) 2025-08-11 [email protected] Roll Flutter from 1590543 to e2a347b (1 revision) (flutter/packages#9784) 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 [email protected] 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
Follow up to #9515 that moves Dart ProxyApi methods to a separate file.
Pre-Review Checklist
[shared_preferences]
pubspec.yaml
with 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.md
to add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assist
bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.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