[tool] Add dartFileName setting for platform plugins #153099
Merged
auto-submit[bot] merged 5 commits intoflutter:masterfrom Sep 6, 2024
Merged
[tool] Add dartFileName setting for platform plugins #153099auto-submit[bot] merged 5 commits intoflutter:masterfrom
dartFileName setting for platform plugins #153099auto-submit[bot] merged 5 commits intoflutter:masterfrom
Conversation
3998959 to
dd46c0b
Compare
76f6b29 to
3f40418
Compare
dartFileName setting to platform plugins dartFileName setting for platform plugins
c9c89ad to
47ecf83
Compare
4c28892 to
54b0708
Compare
54b0708 to
536b0cf
Compare
Contributor
Author
|
@christopherfujino, given your recent reviews to PR's with files affected here, would you kindly review this PR when you have a moment? Thank you! |
stuartmorgan-g
requested changes
Aug 27, 2024
packages/flutter_tools/test/general.shard/plugin_parsing_test.dart
Outdated
Show resolved
Hide resolved
536b0cf to
ef12b3d
Compare
stuartmorgan-g
approved these changes
Sep 5, 2024
Contributor
stuartmorgan-g
left a comment
There was a problem hiding this comment.
LGTM with one nit.
ef12b3d to
deb7b6f
Compare
Contributor
|
auto label is removed for flutter/flutter/153099, due to - The status or check suite Windows build_tests_5_7 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Sep 6, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Sep 6, 2024
auto-submit bot
pushed a commit
to flutter/packages
that referenced
this pull request
Sep 6, 2024
flutter/flutter@45ef8f3...2e221e7 2024-09-06 [email protected] Fix DropdownMenu focused item styles (flutter/flutter#153159) 2024-09-06 [email protected] Support custom transition duration for `DialogRoute`, `CupertinoDialogRoute` and show dialog methods. (flutter/flutter#154048) 2024-09-06 [email protected] [tool] Add `dartFileName` setting for platform plugins (flutter/flutter#153099) 2024-09-06 [email protected] [Conductor] Add ability to override mirror, add tests for default arg parsing and custom arg parsing (flutter/flutter#154363) 2024-09-06 [email protected] Improve CupertinoPopupSurface appearance (flutter/flutter#151430) 2024-09-06 [email protected] Roll Packages from 71e827e to 56df73e (1 revision) (flutter/flutter#154725) 2024-09-06 [email protected] Quick access to style guide (flutter/flutter#154689) 2024-09-06 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Roll Flutter Engine from c50eb8a65097 to 015f3b1dec53 (2 revisions) (#154691)" (flutter/flutter#154726) 2024-09-05 [email protected] Improve iOS unpack target's error messages (flutter/flutter#154649) 2024-09-05 [email protected] Made some pixel tests fuzzy (flutter/flutter#154680) 2024-09-05 [email protected] Roll Flutter Engine from c50eb8a65097 to 015f3b1dec53 (2 revisions) (flutter/flutter#154691) 2024-09-05 49699333+dependabot[bot]@users.noreply.github.com Bump peter-evans/create-pull-request from 7.0.0 to 7.0.1 (flutter/flutter#154690) 2024-09-05 [email protected] Normalize Dialog theme (flutter/flutter#153982) 2024-09-05 [email protected] iOS,macOS: Do not copy unsigned_binaries.txt to build outputs (flutter/flutter#154684) 2024-09-05 [email protected] Roll Flutter Engine from e042ff5df7af to c50eb8a65097 (1 revision) (flutter/flutter#154679) 2024-09-05 [email protected] Add proguard rule to keep the class for all implementations of FlutterPlugin (flutter/flutter#154677) 2024-09-05 [email protected] Fix DropdownMenu menu does not follow the text field (flutter/flutter#154667) 2024-09-05 [email protected] Roll Flutter Engine from a156e713f4dc to e042ff5df7af (1 revision) (flutter/flutter#154678) 2024-09-05 [email protected] Fix ZoomPageTransitionsBuilder hardcoded fill color (flutter/flutter#154057) 2024-09-05 [email protected] Roll Flutter Engine from 34b61eb53b99 to a156e713f4dc (1 revision) (flutter/flutter#154672) 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 Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: 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
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Dec 11, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Dec 12, 2024
JSUYA
added a commit
to JSUYA/flutter-tizen
that referenced
this pull request
Feb 5, 2026
Honor the "dartFileName" key when generating the Dart plugin registrant so plugins can specify a non-default entrypoint file.\n\nRefs: flutter/flutter#153099\nhttps://github.com/flutter/flutter/pull/153099
JSUYA
added a commit
to JSUYA/flutter-tizen
that referenced
this pull request
Feb 5, 2026
Honor the "dartFileName" key when generating the Dart plugin registrant so plugins can specify a non-default entrypoint file.\n\nRefs: flutter/flutter#153099\nhttps://github.com/flutter/flutter/pull/153099
JSUYA
added a commit
to JSUYA/flutter-tizen
that referenced
this pull request
Feb 5, 2026
…metadata - Exclude dev_dependency Dart plugins from integration test entrypoint wrappers. - Honor dartFileName when generating plugin imports. - Avoid forcing buildInfo to be non-null; fall back to debuggingOptions.buildInfo. Refs: flutter/flutter#153099, flutter/flutter#161828 flutter/flutter#153099 flutter/flutter#161828
JSUYA
added a commit
to JSUYA/flutter-tizen
that referenced
this pull request
Feb 5, 2026
When generating integration_test wrapper files, prefer package URIs (via package_config) over file URIs for mainImport to better match upstream registrant generation. Refs: flutter/flutter#153099 flutter/flutter#153099
JSUYA
added a commit
to JSUYA/flutter-tizen
that referenced
this pull request
Feb 5, 2026
Generate integration_test entrypoint wrappers with a @pragma('vm:entry-point') plugin registrant class and import dart_plugin_registrant, matching upstream patterns used for Dart plugin registration. Refs: flutter/flutter#153099 flutter/flutter#153099
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the
dartFileNameparameter for platform plugin configurations with Dart platform implementations. This new parameter allows plugin developers to specify a custom path to the file where thedartPluginClassis defined.Implementation is opt-in.
dartFileNameis completely optional and is taken in account only withdartClassName. Possibility to setdartClassNamewithoutdartFileNameremains.Implementation is backward compatible – existing configurations using only
dartClassNameremain fully supported. IfdartFileNameis omitted, the system falls back to the previous behavior of deriving the file name from the plugin name.Example
fixes #152833
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.