Skip to content

Commit 3fdbd21

Browse files
amirhEgor
authored andcommitted
[url_launcher_platform_interface] use non static token for platform interface (flutter#2418)
1 parent 86b4e5a commit 3fdbd21

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.5
2+
3+
* Make the `PlatformInterface` `_token` non `const` (as `const` `Object`s are not unique).
4+
15
## 1.0.4
26

37
* Use the common PlatformInterface code from plugin_platform_interface.

packages/url_launcher/url_launcher_platform_interface/lib/url_launcher_platform_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class UrlLauncherPlatform extends PlatformInterface {
2020
/// Constructs a UrlLauncherPlatform.
2121
UrlLauncherPlatform() : super(token: _token);
2222

23-
static const Object _token = Object();
23+
static final Object _token = Object();
2424

2525
static UrlLauncherPlatform _instance = MethodChannelUrlLauncher();
2626

packages/url_launcher/url_launcher_platform_interface/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ description: A common platform interface for the url_launcher plugin.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 1.0.4
6+
version: 1.0.5
77

88
dependencies:
99
flutter:
1010
sdk: flutter
1111
meta: ^1.0.5
12-
plugin_platform_interface: ^1.0.0
12+
plugin_platform_interface: ^1.0.1
1313

1414
dev_dependencies:
1515
flutter_test:

0 commit comments

Comments
 (0)