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

Commit a80f983

Browse files
[url_launcher] Major version bump for desktop Dart-based url_launcher implementations (#4777)
#4719 converted the url_launcher implementations to Dart-based versions. This should have been completely transparent to clients, but there is a latent bug in `url_launcher` where the `default_package` entries for Linux, macOS, and Windows are incorrect. This went unnoticed until now because currently the only client-facing effect of `default_package` is in resolving which implementation to run Dart registration for. Because of the typos in the `default_package` entries, the resolution in the `flutter` tool doesn't recognize the registration for these packages as needing to run, causing them to be broken at runtime. The affected versions have been retracted to fix the breakage in the short term. This is PR is the first half of the long-term fix; it re-releases them as a major version bump so that existing versions of `url_launcher` will not pick them up. Once they are published, a follow-up PR will update `url_launcher` to fix the typos and relax the version constraints for the dependencies on these implementation packages to allow 2.x or 3.x. (In theory this could be one PR, but doing it as two ensures that we get real testing on the `url_launcher` change, so is safer.) Part of a long-term fix for flutter/flutter#98097
1 parent 08ba6bd commit a80f983

File tree

6 files changed

+28
-5
lines changed

6 files changed

+28
-5
lines changed

packages/url_launcher/url_launcher_linux/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
## 3.0.0
2+
3+
* Changes the major version since, due to a typo in `default_package` in
4+
existing versions of `url_launcher`, requiring Dart registration in this
5+
package is in practice a breaking change.
6+
* Does not include any API changes; clients can allow both 2.x or 3.x.
7+
18
## 2.0.4
29

3-
* Switches to an in-package method channel implementation.
10+
* **\[Retracted\]** Switches to an in-package method channel implementation.
411

512
## 2.0.3
613

packages/url_launcher/url_launcher_linux/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_linux
22
description: Linux implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_linux
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
5-
version: 2.0.4
5+
version: 3.0.0
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

packages/url_launcher/url_launcher_macos/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
## 3.0.0
2+
3+
* Changes the major version since, due to a typo in `default_package` in
4+
existing versions of `url_launcher`, requiring Dart registration in this
5+
package is in practice a breaking change.
6+
* Does not include any API changes; clients can allow both 2.x or 3.x.
7+
18
## 2.0.4
29

3-
* Switches to an in-package method channel implementation.
10+
* **\[Retracted\]** Switches to an in-package method channel implementation.
411

512
## 2.0.3
613

packages/url_launcher/url_launcher_macos/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_macos
22
description: macOS implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_macos
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
5-
version: 2.0.4
5+
version: 3.0.0
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

packages/url_launcher/url_launcher_windows/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
## 3.0.0
2+
3+
* Changes the major version since, due to a typo in `default_package` in
4+
existing versions of `url_launcher`, requiring Dart registration in this
5+
package is in practice a breaking change.
6+
* Does not include any API changes; clients can allow both 2.x or 3.x.
7+
18
## 2.0.3
29

10+
**\[Retracted\]**
11+
312
* Switches to an in-package method channel implementation.
413
* Adds unit tests.
514
* Updates code for new analysis options.

packages/url_launcher/url_launcher_windows/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_windows
22
description: Windows implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_windows
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
5-
version: 2.0.3
5+
version: 3.0.0
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)