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

[url_launcher] Convert Windows to Pigeon #6991

Merged
merged 10 commits into from Jan 25, 2023

Conversation

stuartmorgan
Copy link
Contributor

Replaces the manual method channel code with Pigeon.

To minimize changes in this PR, this keeps the same API boundary, without moving any logic from C++ to Dart; there's definitely opportunity to do some of that as a follow-up (e.g., moving scheme extraction to Dart and replacing canLaunchUrl with hasSchemeHandler). However, the API—and thus tests—are simplified because the current method channel API was the result of copying the old shared method channel API during the move away from shared method channels, so contained a lot of parameters that are unused on Windows.

Part of flutter/flutter#117915

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.

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v5.0.1), do not edit directly.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're welcome to review the *.g.* files if you want to provide feedback on Pigeon's output, which I can turn into Pigeon issues, but you can also skip it if you want since it's purely generated code.

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.

Wow - that's significantly more readable. Nice.

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 24, 2023
@auto-submit
Copy link

auto-submit bot commented Jan 25, 2023

auto label is removed for flutter/plugins, pr: 6991, Failed to merge pr#: 6991 with Pull request could not be merged: Pull Request is not mergeable.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jan 25, 2023
@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 25, 2023
@auto-submit auto-submit bot merged commit 15d799b into flutter:main Jan 25, 2023
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
* Initial definition matching current API

* Rename, autoformat

* Update native implementation and unit tests

* Update Dart; remove unnecessary Pigeon test API

* Version bump

* autoformat

* Adjust mock API setup

* Improve comment
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 26, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jan 26, 2023
* bc0174fd5 [path_provider] Fix iOS `getApplicationSupportDirectory` regression (flutter/plugins#7026)

* 15d799b89 [url_launcher] Convert Windows to Pigeon (flutter/plugins#6991)

* dc8ad7701 Roll Flutter from c35efda to a815ee6 (22 revisions) (flutter/plugins#7025)

* e9406bc20 [camerax] Adds functionality to bind UseCases to a lifecycle (flutter/plugins#6939)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: url_launcher platform-windows
Projects
None yet
2 participants