diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 56def7b..46299f5 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,4 +1,4 @@ -# Created with package:mono_repo v6.5.7 +# Created with package:mono_repo v6.6.0 name: Dart CI on: push: @@ -33,7 +33,7 @@ jobs: name: Checkout repository uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: mono_repo self validate - run: dart pub global activate mono_repo 6.5.7 + run: dart pub global activate mono_repo 6.6.0 - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: @@ -935,7 +935,7 @@ jobs: if: "always() && steps.package_constraint_solver_pub_upgrade.conclusion == 'success'" working-directory: package_constraint_solver - name: Upload coverage to Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@main with: github-token: "${{ secrets.GITHUB_TOKEN }}" path-to-lcov: package_constraint_solver/coverage/lcov.info @@ -1204,7 +1204,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Mark Coveralls job finished - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@main with: github-token: "${{ secrets.GITHUB_TOKEN }}" parallel-finished: true diff --git a/README.md b/README.md index 38671e2..3602f38 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,6 @@ See the [Contributing guide][contributing] for details on how to contribute. [dart]: https://dart.dev [awesome-dart]: https://github.com/yissachar/awesome-dart -[contributing]: https://github.com/dart-lang/samples/blob/master/CONTRIBUTING.md +[contributing]: https://github.com/dart-lang/samples/blob/main/CONTRIBUTING.md [pop-pop-win]: https://github.com/dart-lang/sample-pop_pop_win [dart-tutorials]: https://dart.dev/tutorials diff --git a/command_line/pubspec.yaml b/command_line/pubspec.yaml index 430030d..61023c3 100644 --- a/command_line/pubspec.yaml +++ b/command_line/pubspec.yaml @@ -7,7 +7,7 @@ description: > publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: args: ^2.4.0 @@ -18,7 +18,7 @@ dependencies: dev_dependencies: build_cli: ^2.2.2 build_runner: ^2.4.6 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 executables: diff --git a/enhanced_enums/pubspec.yaml b/enhanced_enums/pubspec.yaml index 4286f7b..70c9dee 100644 --- a/enhanced_enums/pubspec.yaml +++ b/enhanced_enums/pubspec.yaml @@ -5,8 +5,8 @@ description: Samples that demonstrates the enhanced enums syntax publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 diff --git a/extension_methods/pubspec.yaml b/extension_methods/pubspec.yaml index ab9aee7..5992677 100644 --- a/extension_methods/pubspec.yaml +++ b/extension_methods/pubspec.yaml @@ -6,8 +6,8 @@ description: > publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 diff --git a/ffi/hello_world/pubspec.yaml b/ffi/hello_world/pubspec.yaml index a40d948..f9a82c7 100644 --- a/ffi/hello_world/pubspec.yaml +++ b/ffi/hello_world/pubspec.yaml @@ -7,13 +7,13 @@ description: >- publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: path: ^1.8.3 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/primitives/pubspec.yaml b/ffi/primitives/pubspec.yaml index 695dcc0..acefaa9 100644 --- a/ffi/primitives/pubspec.yaml +++ b/ffi/primitives/pubspec.yaml @@ -5,14 +5,14 @@ description: A super simple example of calling C code from Dart with FFI publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: ffi: ^2.1.0 path: ^1.8.3 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/structs/pubspec.yaml b/ffi/structs/pubspec.yaml index fbc5d14..9312302 100644 --- a/ffi/structs/pubspec.yaml +++ b/ffi/structs/pubspec.yaml @@ -7,14 +7,14 @@ description: >- publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: ffi: ^2.1.0 path: ^1.8.3 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/system-command/pubspec.yaml b/ffi/system-command/pubspec.yaml index 6dca9ea..ad01712 100644 --- a/ffi/system-command/pubspec.yaml +++ b/ffi/system-command/pubspec.yaml @@ -5,11 +5,11 @@ description: A FFI application that invokes system commands. publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: ffi: ^2.1.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 diff --git a/ffi/test_utils/pubspec.yaml b/ffi/test_utils/pubspec.yaml index 3785de3..3739c8b 100644 --- a/ffi/test_utils/pubspec.yaml +++ b/ffi/test_utils/pubspec.yaml @@ -4,10 +4,10 @@ name: test_utils publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: path: ^1.8.3 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 diff --git a/isolates/pubspec.yaml b/isolates/pubspec.yaml index 6f3a915..e445532 100644 --- a/isolates/pubspec.yaml +++ b/isolates/pubspec.yaml @@ -3,11 +3,11 @@ description: A sample command-line application. publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: async: ^2.11.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 diff --git a/native_app/pubspec.yaml b/native_app/pubspec.yaml index a3609c9..2047ab5 100644 --- a/native_app/pubspec.yaml +++ b/native_app/pubspec.yaml @@ -7,10 +7,10 @@ description: > publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 executables: main: hello_world diff --git a/null_safety/calculate_lix/pubspec.yaml b/null_safety/calculate_lix/pubspec.yaml index e703bd1..6e25bb3 100644 --- a/null_safety/calculate_lix/pubspec.yaml +++ b/null_safety/calculate_lix/pubspec.yaml @@ -6,10 +6,10 @@ version: 1.3.0 publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: collection: ^1.18.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 diff --git a/package_constraint_solver/pubspec.yaml b/package_constraint_solver/pubspec.yaml index 0c5bdfa..2ce93e0 100644 --- a/package_constraint_solver/pubspec.yaml +++ b/package_constraint_solver/pubspec.yaml @@ -4,13 +4,13 @@ repository: https://github.com/dart-lang/samples/tree/main/package_constraint_so publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: path: ^1.8.3 dev_dependencies: checks: ^0.2.0 - lints: ^2.1.0 + lints: ^3.0.0 intl: ^0.18.1 test: ^1.24.0 diff --git a/parameters/lib/named_parameters.dart b/parameters/lib/named_parameters.dart index 07228fe..3a7fde8 100644 --- a/parameters/lib/named_parameters.dart +++ b/parameters/lib/named_parameters.dart @@ -5,6 +5,7 @@ /// This example shows the use of named arguments and parameters. /// /// See the test under `../test/named_parameters_test.dart` for its use. +library; /// Function that counts the amount of [items] that match a given [predicate], /// with the option to skip the first [skip] elements. diff --git a/parameters/lib/super_initalizer.dart b/parameters/lib/super_initalizer.dart index aee9311..2bf45ce 100644 --- a/parameters/lib/super_initalizer.dart +++ b/parameters/lib/super_initalizer.dart @@ -7,6 +7,7 @@ /// Super-initializer parameters allow to forward constructor parameters /// to the superclass, avoiding having to write the parameter multiple times /// in the superclass constructor invocation. +library; /// This example contains multiple classes representing different types of /// synthesizers, a musical instrument similar to a piano diff --git a/parameters/pubspec.yaml b/parameters/pubspec.yaml index c30726a..1220790 100644 --- a/parameters/pubspec.yaml +++ b/parameters/pubspec.yaml @@ -5,8 +5,8 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dev_dependencies: - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 diff --git a/server/google_apis/analysis_options.yaml b/server/google_apis/analysis_options.yaml index d978f81..572dd23 100644 --- a/server/google_apis/analysis_options.yaml +++ b/server/google_apis/analysis_options.yaml @@ -1 +1 @@ -include: package:dart_flutter_team_lints/analysis_options.yaml +include: package:lints/recommended.yaml diff --git a/server/google_apis/pubspec.yaml b/server/google_apis/pubspec.yaml index 89a541f..0be0f78 100644 --- a/server/google_apis/pubspec.yaml +++ b/server/google_apis/pubspec.yaml @@ -2,7 +2,7 @@ name: cloud_run_google_apis publish_to: none # not intended for publication to pub.dev environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: google_cloud: ^0.2.0 @@ -12,4 +12,4 @@ dependencies: shelf_router: ^1.1.0 dev_dependencies: - dart_flutter_team_lints: ^1.0.0 + lints: ^3.0.0 diff --git a/server/simple/bin/server.dart b/server/simple/bin/server.dart index 8319ed6..cf1b9f0 100644 --- a/server/simple/bin/server.dart +++ b/server/simple/bin/server.dart @@ -20,7 +20,7 @@ Future main() async { // First, serve files from the 'public' directory .add(_staticHandler) // If a corresponding file is not found, send requests to a `Router` - .add(_router); + .add(_router.call); // See https://pub.dev/documentation/shelf/latest/shelf_io/serve.html final server = await shelf_io.serve( diff --git a/server/simple/pubspec.yaml b/server/simple/pubspec.yaml index 60af2d5..c887c35 100644 --- a/server/simple/pubspec.yaml +++ b/server/simple/pubspec.yaml @@ -2,7 +2,7 @@ name: container_server_example publish_to: none # not intended for publication to pub.dev environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: shelf: ^1.4.0 @@ -11,6 +11,6 @@ dependencies: dev_dependencies: http: ^1.1.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 test_process: ^2.1.0 diff --git a/tool/ci.sh b/tool/ci.sh index afed550..13c3191 100755 --- a/tool/ci.sh +++ b/tool/ci.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Created with package:mono_repo v6.5.7 +# Created with package:mono_repo v6.6.0 # Support built in commands on windows out of the box. # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")