Merge null-safety plugins (#3324)

This commit is contained in:
Emmanuel Garcia
2020-12-14 13:33:59 -08:00
committed by GitHub
parent 4b0b0a86ce
commit a5c9c5635c
111 changed files with 1153 additions and 669 deletions

View File

@ -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`.

View File

@ -0,0 +1,4 @@
include: ../../analysis_options.yaml
analyzer:
enable-experiment:
- non-nullable

View File

@ -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;

View File

@ -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

View File

@ -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';