diff --git a/pkgs/package_config/.github/workflows/test-package.yml b/pkgs/package_config/.github/workflows/test-package.yml index 33717105d..704ee2e3c 100644 --- a/pkgs/package_config/.github/workflows/test-package.yml +++ b/pkgs/package_config/.github/workflows/test-package.yml @@ -46,7 +46,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - sdk: [3.2, dev] + sdk: [3.4, dev] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 diff --git a/pkgs/package_config/CHANGELOG.md b/pkgs/package_config/CHANGELOG.md index 2870c8c08..f9fec1d00 100644 --- a/pkgs/package_config/CHANGELOG.md +++ b/pkgs/package_config/CHANGELOG.md @@ -1,6 +1,6 @@ ## 2.1.1-wip -- Require Dart 3.2 +- Require Dart 3.4 ## 2.1.0 diff --git a/pkgs/package_config/lib/package_config.dart b/pkgs/package_config/lib/package_config.dart index 194fe894e..074c97707 100644 --- a/pkgs/package_config/lib/package_config.dart +++ b/pkgs/package_config/lib/package_config.dart @@ -7,7 +7,7 @@ /// /// This package provides functionality to find, read and write package /// configurations in the [specified format](https://github.com/dart-lang/language/blob/master/accepted/future-releases/language-versioning/package-config-file-v2.md). -library package_config.package_config; +library; import 'dart:io' show Directory, File; import 'dart:typed_data' show Uint8List; diff --git a/pkgs/package_config/lib/package_config_types.dart b/pkgs/package_config/lib/package_config_types.dart index 756be0518..825f7acec 100644 --- a/pkgs/package_config/lib/package_config_types.dart +++ b/pkgs/package_config/lib/package_config_types.dart @@ -10,7 +10,7 @@ /// {@canonicalFor package_config.Package} /// {@canonicalFor package_config.PackageConfig} /// {@canonicalFor errors.PackageConfigError} -library package_config.package_config_types; +library; export 'src/errors.dart' show PackageConfigError; export 'src/package_config.dart' diff --git a/pkgs/package_config/lib/src/util.dart b/pkgs/package_config/lib/src/util.dart index f1fa20790..4f0210cda 100644 --- a/pkgs/package_config/lib/src/util.dart +++ b/pkgs/package_config/lib/src/util.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Utility methods used by more than one library in the package. -library package_config.util; +library; import 'errors.dart'; diff --git a/pkgs/package_config/lib/src/util_io.dart b/pkgs/package_config/lib/src/util_io.dart index 914ea384e..4680eefd4 100644 --- a/pkgs/package_config/lib/src/util_io.dart +++ b/pkgs/package_config/lib/src/util_io.dart @@ -4,7 +4,7 @@ /// Utility methods requiring dart:io and used by more than one library in the /// package. -library package_config.util_io; +library; import 'dart:io'; import 'dart:typed_data'; diff --git a/pkgs/package_config/pubspec.yaml b/pkgs/package_config/pubspec.yaml index 9db82c64f..545701d6d 100644 --- a/pkgs/package_config/pubspec.yaml +++ b/pkgs/package_config/pubspec.yaml @@ -4,11 +4,11 @@ description: Support for reading and writing Dart Package Configuration files. repository: https://github.com/dart-lang/package_config environment: - sdk: ^3.2.0 + sdk: ^3.4.0 dependencies: path: ^1.8.0 dev_dependencies: - dart_flutter_team_lints: ^2.1.0 + dart_flutter_team_lints: ^3.0.0 test: ^1.16.0 diff --git a/pkgs/package_config/test/discovery_test.dart b/pkgs/package_config/test/discovery_test.dart index 2ca337a19..6d1b65529 100644 --- a/pkgs/package_config/test/discovery_test.dart +++ b/pkgs/package_config/test/discovery_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('vm') -library package_config.discovery_test; +library; import 'dart:io'; diff --git a/pkgs/package_config/test/discovery_uri_test.dart b/pkgs/package_config/test/discovery_uri_test.dart index b71ed5172..542bf0a65 100644 --- a/pkgs/package_config/test/discovery_uri_test.dart +++ b/pkgs/package_config/test/discovery_uri_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('vm') -library package_config.discovery_test; +library; import 'package:package_config/package_config.dart'; import 'package:test/test.dart';