Remove unneeded dart:async imports Since Dart 2.1, Future and Stream have been exported from dart:core Alternatively, if for some reason this package must continue to support Dart 2.0, we can make an exception for these internally.
diff --git a/pkgs/io/.travis.yml b/pkgs/io/.travis.yml index b50cdbf..aa11342 100644 --- a/pkgs/io/.travis.yml +++ b/pkgs/io/.travis.yml
@@ -1,7 +1,7 @@ language: dart dart: - - 2.0.0 + - 2.1.0 - dev dart_task:
diff --git a/pkgs/io/CHANGELOG.md b/pkgs/io/CHANGELOG.md index 1dcf5b6..bd92971 100644 --- a/pkgs/io/CHANGELOG.md +++ b/pkgs/io/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 0.3.5-dev + +* Require Dart >=2.1 + ## 0.3.4 * Fix a number of issues affecting the package score on `pub.dev`.
diff --git a/pkgs/io/lib/src/copy_path.dart b/pkgs/io/lib/src/copy_path.dart index 3b2f6cf..b1dd5af 100644 --- a/pkgs/io/lib/src/copy_path.dart +++ b/pkgs/io/lib/src/copy_path.dart
@@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'dart:async'; import 'dart:io'; import 'package:path/path.dart' as p;
diff --git a/pkgs/io/pubspec.yaml b/pkgs/io/pubspec.yaml index dfb3b49..7bb19ba 100644 --- a/pkgs/io/pubspec.yaml +++ b/pkgs/io/pubspec.yaml
@@ -2,11 +2,11 @@ description: >- Utilities for the Dart VM Runtime including support for ANSI colors, file copying, and standard exit code values. -version: 0.3.4 +version: 0.3.5-dev homepage: https://github.com/dart-lang/io environment: - sdk: ">=2.0.0 <3.0.0" + sdk: ">=2.1.0 <3.0.0" dependencies: charcode: ^1.0.0
diff --git a/pkgs/io/test/copy_path_test.dart b/pkgs/io/test/copy_path_test.dart index ac06bb5..69bed59 100644 --- a/pkgs/io/test/copy_path_test.dart +++ b/pkgs/io/test/copy_path_test.dart
@@ -3,8 +3,6 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('vm') -import 'dart:async'; - import 'package:io/io.dart'; import 'package:path/path.dart' as p; import 'package:test/test.dart';