commit | 399be066751a0ff69eb5df5d4d709184f034a10a | [log] [tgz] |
---|---|---|
author | Amir Hardon <amirh@users.noreply.github.com> | Fri Dec 13 14:36:29 2019 -0800 |
committer | GitHub <noreply@github.com> | Fri Dec 13 14:36:29 2019 -0800 |
tree | 2f640ed41aee875798944a6bb11774db754959da | |
parent | 189fa933ac90ef68b83da77efad6a7175cc41ff1 [diff] |
[url_launcher_platform_interface] use non static token for platform interface (#2418)
diff --git a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md index fa13c2d..f55b4cb 100644 --- a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 1.0.5 + +* Make the `PlatformInterface` `_token` non `const` (as `const` `Object`s are not unique). + ## 1.0.4 * Use the common PlatformInterface code from plugin_platform_interface.
diff --git a/packages/url_launcher/url_launcher_platform_interface/lib/url_launcher_platform_interface.dart b/packages/url_launcher/url_launcher_platform_interface/lib/url_launcher_platform_interface.dart index 3e41df0..164555d 100644 --- a/packages/url_launcher/url_launcher_platform_interface/lib/url_launcher_platform_interface.dart +++ b/packages/url_launcher/url_launcher_platform_interface/lib/url_launcher_platform_interface.dart
@@ -20,7 +20,7 @@ /// Constructs a UrlLauncherPlatform. UrlLauncherPlatform() : super(token: _token); - static const Object _token = Object(); + static final Object _token = Object(); static UrlLauncherPlatform _instance = MethodChannelUrlLauncher();
diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index e8cab0e..aa57b14 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml
@@ -3,13 +3,13 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_platform_interface # NOTE: We strongly prefer non-breaking changes, even at the expense of a # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes -version: 1.0.4 +version: 1.0.5 dependencies: flutter: sdk: flutter meta: ^1.0.5 - plugin_platform_interface: ^1.0.0 + plugin_platform_interface: ^1.0.1 dev_dependencies: flutter_test: