Skip to content

[file_selector] Convert Linux to Pigeon #7770

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

Merged
merged 17 commits into from
Oct 2, 2024

Conversation

stuartmorgan-g
Copy link
Contributor

Replaces manual method channel code with Pigeon.

I made a couple of simplifications to the Dart/C boundary while converting:

  • The return value is a always a list now; it's easier to handle that on the Dart side than track and handle in the native code.
  • It's a single method with a type enum, instead of several different methods, since that mirrors the underlying SDK.

These changes are consistent with our general trend toward putting more logic in Dart and less in native code, for ease of maintenance.

Fixes flutter/flutter#117906

Pre-launch Checklist

}

{
g_autoptr(FlValue) image_group_extensions = fl_value_new_list();
fl_value_append_take(image_group_extensions, fl_value_new_string("*.png"));
fl_value_append_take(image_group_extensions, fl_value_new_string("*.gif"));
fl_value_append_take(image_group_extensions,
fl_value_new_string("*.jgpeg"));
Copy link
Member

Choose a reason for hiding this comment

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

Oh wow -- nice find.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM stamp from a Japanese personal seal

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 2, 2024
@auto-submit auto-submit bot merged commit 7c97c88 into flutter:main Oct 2, 2024
76 checks passed
@stuartmorgan-g stuartmorgan-g deleted the file-selector-linux-pigeon branch October 2, 2024 18:35
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 2, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 2, 2024
flutter/packages@ebcc4f0...7c97c88

2024-10-02 [email protected] [file_selector] Convert Linux to Pigeon (flutter/packages#7770)
2024-10-02 [email protected] Background/resuming `video_player` on Android sends one `initialized` event (flutter/packages#7722)
2024-10-02 [email protected] [quick_actions_android] Update instructions for using a launcher activity with more breadcrumbs (flutter/packages#7716)
2024-10-01 [email protected] Add flutter frame timings to benchmark metrics (flutter/packages#7759)
2024-10-01 [email protected] [local_auth] Update Pigeon in iOS and Android (flutter/packages#7724)

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
}
}

/// Options for GKT file chooser.
Copy link
Contributor

Choose a reason for hiding this comment

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

GKT > GTK :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doh! I'll try to remember to fix that next time we touch the file.

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: file_selector platform-linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[file_selector] Convert to Pigeon
3 participants