Skip to content

[url_launcher] Fix launch mode types in new APIs #5232

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 2 commits into from
Oct 25, 2023

Conversation

stuartmorgan-g
Copy link
Contributor

The new query APIs added in 6.2.0 accidentally used PreferredLaunchMode, which is only intended for the platform interface layer, rather than LaunchMode, which is the app-facing analog (they are separate to allow controlling when each is updated separately).

Technically this is a breaking change, but 6.2.0 was out for less than 24 hours, so extremely few people will be affected (they would have to have updated, written code against the new API, and worked around the lack of type export), and a breaking change to fix this would have much more disruptive effects on the ecosystem.

Fixes flutter/flutter#137278

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/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package 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.

The new query APIs added in 6.2.0 accidentally used
`PreferredLaunchMode`, which is only intended for the platform interface
layer, rather than `LaunchMode`, which is the app-facing analog (they
are separate to allow controlling when each is updated separately).

Technically this is a breaking change, but 6.2.0 was out for less than
24 hours, so very few people will be affected, and a breaking change to
fix this would have much more disruptive effects on the ecosystem.

Fixes flutter/flutter#137278
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

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 25, 2023
@auto-submit auto-submit bot merged commit fea24c5 into flutter:main Oct 25, 2023
@stuartmorgan-g stuartmorgan-g deleted the url-launcher-type-fix branch October 25, 2023 20:41
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 26, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 26, 2023
flutter/packages@f751ffb...fea24c5

2023-10-25 stuartmorgan@google.com [url_launcher] Fix launch mode types in new APIs (flutter/packages#5232)
2023-10-25 43054281+camsim99@users.noreply.github.com [camerax] Implement `setZoomLevel` (flutter/packages#4950)
2023-10-25 engine-flutter-autoroll@skia.org Roll Flutter from 5e8b5f4 to 5dd2a4e (59 revisions) (flutter/packages#5231)
2023-10-25 43054281+camsim99@users.noreply.github.com [file_selector_android] Run tests on AVDs running Android 34 (flutter/packages#5218)

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 flutter-ecosystem@google.com,rmistry@google.com 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
@reidbaker reidbaker mentioned this pull request Jan 12, 2024
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: url_launcher
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[url_launcher] Missing types like PreferredLaunchMode
2 participants