Skip to content

Commit

Permalink
[url_launcher_platform_interface] use non static token for platform i…
Browse files Browse the repository at this point in the history
…nterface (flutter#2418)
  • Loading branch information
amirh authored Dec 13, 2019
1 parent 189fa93 commit 399be06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class UrlLauncherPlatform extends PlatformInterface {
/// Constructs a UrlLauncherPlatform.
UrlLauncherPlatform() : super(token: _token);

static const Object _token = Object();
static final Object _token = Object();

static UrlLauncherPlatform _instance = MethodChannelUrlLauncher();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ description: A common platform interface for the url_launcher plugin.
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:
Expand Down

0 comments on commit 399be06

Please sign in to comment.