From 8d29573ab6fd26a272dc846255eda66a01abae01 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 7 Jun 2023 20:31:15 -0700 Subject: [PATCH] Require Dart 3.0, update lints (#67) --- .github/workflows/test-package.yml | 2 +- CHANGELOG.md | 4 ++++ analysis_options.yaml | 1 + pubspec.yaml | 6 +++--- test/typed_buffers_test.dart | 2 ++ test/typed_buffers_vm_test.dart | 2 ++ 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 4bad718..6e9fc39 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -47,7 +47,7 @@ jobs: matrix: # Add macos-latest and/or windows-latest if relevant for this package. os: [ubuntu-latest] - sdk: [2.17.0, dev] + sdk: [3.0.0, dev] steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f diff --git a/CHANGELOG.md b/CHANGELOG.md index 192a280..b067b89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.3-wip + +* Require Dart 3.0 + ## 1.3.2 * Added package topics to the pubspec file. diff --git a/analysis_options.yaml b/analysis_options.yaml index 13eb823..0354653 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,3 +1,4 @@ +# https://dart.dev/guides/language/analysis-options include: package:dart_flutter_team_lints/analysis_options.yaml analyzer: diff --git a/pubspec.yaml b/pubspec.yaml index a7d713f..de8c6d2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: typed_data -version: 1.3.2 +version: 1.3.3-wip description: >- Utility functions and classes related to the dart:typed_data library. repository: https://github.com/dart-lang/typed_data @@ -8,11 +8,11 @@ topics: - data-structures environment: - sdk: '>=2.17.0 <4.0.0' + sdk: ^3.0.0 dependencies: collection: ^1.15.0 dev_dependencies: - dart_flutter_team_lints: ^0.1.0 + dart_flutter_team_lints: ^1.0.0 test: ^1.16.0 diff --git a/test/typed_buffers_test.dart b/test/typed_buffers_test.dart index 409eb5f..9d73040 100644 --- a/test/typed_buffers_test.dart +++ b/test/typed_buffers_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('!vm') +library; + import 'dart:typed_data'; import 'package:test/test.dart'; diff --git a/test/typed_buffers_vm_test.dart b/test/typed_buffers_vm_test.dart index 44a66bf..62afcef 100644 --- a/test/typed_buffers_vm_test.dart +++ b/test/typed_buffers_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('vm') +library; + import 'package:test/test.dart'; import 'typed_buffers_test.dart';