diff --git a/packages/plugin_platform_interface/CHANGELOG.md b/packages/plugin_platform_interface/CHANGELOG.md index 055d6e0afa46..3ad68b19a606 100644 --- a/packages/plugin_platform_interface/CHANGELOG.md +++ b/packages/plugin_platform_interface/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.1.7 + +* Changes `MockPlatformInterfaceMixin` to a `mixin class` for better + compatibility with projects that have a minumum Dart SDK version of 3.0. +* Updates minimum supported SDK version to Dart 3.0. + ## 2.1.6 * Adds pub topics to package metadata. diff --git a/packages/plugin_platform_interface/lib/plugin_platform_interface.dart b/packages/plugin_platform_interface/lib/plugin_platform_interface.dart index 6733b29953b0..63408dd1e37e 100644 --- a/packages/plugin_platform_interface/lib/plugin_platform_interface.dart +++ b/packages/plugin_platform_interface/lib/plugin_platform_interface.dart @@ -126,4 +126,4 @@ abstract class PlatformInterface { /// implements UrlLauncherPlatform {} /// ``` @visibleForTesting -abstract class MockPlatformInterfaceMixin implements PlatformInterface {} +abstract mixin class MockPlatformInterfaceMixin implements PlatformInterface {} diff --git a/packages/plugin_platform_interface/pubspec.yaml b/packages/plugin_platform_interface/pubspec.yaml index b9bc3f824046..9c83848759ed 100644 --- a/packages/plugin_platform_interface/pubspec.yaml +++ b/packages/plugin_platform_interface/pubspec.yaml @@ -15,10 +15,10 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ # be done when absolutely necessary and after the ecosystem has already migrated to 2.X.Y version # that is forward compatible with 3.0.0 (ideally the ecosystem have migrated to depend on: # `plugin_platform_interface: >=2.X.Y <4.0.0`). -version: 2.1.6 +version: 2.1.7 environment: - sdk: ">=2.19.0 <4.0.0" + sdk: ">=3.0.0 <4.0.0" dependencies: meta: ^1.3.0