mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00
Merge null-safety plugins (#3324)
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
## 1.1.0-nullsafety.1
|
||||
|
||||
* Bump Dart SDK to support null safety.
|
||||
|
||||
## 1.1.0-nullsafety
|
||||
|
||||
* Migrate to null safety.
|
||||
|
||||
## 1.0.3
|
||||
|
||||
* Fix homepage in `pubspec.yaml`.
|
||||
|
4
packages/plugin_platform_interface/analysis_options.yaml
Normal file
4
packages/plugin_platform_interface/analysis_options.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
include: ../../analysis_options.yaml
|
||||
analyzer:
|
||||
enable-experiment:
|
||||
- non-nullable
|
@ -41,7 +41,7 @@ import 'package:meta/meta.dart';
|
||||
/// [MockPlatformInterfaceMixin] for a sample of using Mockito to mock a platform interface.
|
||||
abstract class PlatformInterface {
|
||||
/// Pass a private, class-specific `const Object()` as the `token`.
|
||||
PlatformInterface({@required Object token}) : _instanceToken = token;
|
||||
PlatformInterface({required Object token}) : _instanceToken = token;
|
||||
|
||||
final Object _instanceToken;
|
||||
|
||||
|
@ -12,17 +12,17 @@ description: Reusable base class for Flutter plugin platform interfaces.
|
||||
# be done when absolutely necessary and after the ecosystem has already migrated to 1.X.Y version
|
||||
# that is forward compatible with 2.0.0 (ideally the ecosystem have migrated to depend on:
|
||||
# `plugin_platform_interface: >=1.X.Y <3.0.0`).
|
||||
version: 1.0.3
|
||||
version: 1.1.0-nullsafety.1
|
||||
|
||||
repository: https://github.com/flutter/plugins/tree/master/packages/plugin_platform_interface
|
||||
|
||||
environment:
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
sdk: ">=2.12.0-0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
meta: ^1.0.0
|
||||
meta: ^1.3.0-nullsafety.3
|
||||
|
||||
dev_dependencies:
|
||||
mockito: ^4.1.1
|
||||
test: ^1.9.4
|
||||
pedantic: ^1.8.0
|
||||
test: ^1.10.0-nullsafety.1
|
||||
pedantic: ^1.10.0-nullsafety.1
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// TODO(egarciad): Remove once Mockito is migrated to null safety.
|
||||
// @dart = 2.9
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
|
Reference in New Issue
Block a user