Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[file_selector] Migrate FileSelectorApi to Dart #6546

Conversation

adpinola
Copy link
Contributor

@adpinola adpinola commented Oct 6, 2022

This PR includes the changes in #6518 and in #6539.

Issue: [file_selector_windows] Migrate CPP implementation to Dart. #112212

This exposes a new FileSelectorApi that will replace the one generated by pigeon.
This will be integrated with the next PR.

Things we have done:

  • Add FileSelectorApi
  • Add SelectionOptions class
  • Add DialogWrapperFactory for testability

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla
Copy link

google-cla bot commented Oct 6, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@adpinola adpinola force-pushed the file_selector/windows/66584-migrate-FileSelectorApi branch 2 times, most recently from f24e590 to 087006a Compare October 6, 2022 18:02
@eugerossetto eugerossetto force-pushed the file_selector/windows/66584-migrate-FileSelectorApi branch from 087006a to 39158c0 Compare October 6, 2022 20:24
@adpinola adpinola force-pushed the file_selector/windows/66584-migrate-FileSelectorApi branch 4 times, most recently from 9a1ca9a to 07f6dce Compare October 12, 2022 17:36
@adpinola adpinola force-pushed the file_selector/windows/66584-migrate-FileSelectorApi branch from 07f6dce to 2d67630 Compare October 12, 2022 17:55
eugerossetto and others added 3 commits October 14, 2022 14:54
Add methods of FileDialogController

Add FileDialogController tests.

Change the location where the free of the pointer is placed.
Add methods of FileDialogController

Add FileDialogController tests.

Extract the interface conversion to a new class to make it testable.

Add DialogWrapper constructor.

Add test constructor to DialogWrapper and add two tests.

Add mock for FileDialogController and tests for implemented methods.

free memory allocations

remove unused properties in dialog_wrapper

use Arena

Return the value of the path.

fix extension string list to remove trailing semicolon
add test suite for file_selector_api
@adpinola adpinola force-pushed the file_selector/windows/66584-migrate-FileSelectorApi branch from 2d67630 to e8f9bd3 Compare October 14, 2022 17:58
@adpinola adpinola closed this Oct 20, 2022
@adpinola adpinola deleted the file_selector/windows/66584-migrate-FileSelectorApi branch October 20, 2022 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants