Skip to content

Commit

Permalink
fix deprecation warnings (#3720)
Browse files Browse the repository at this point in the history
Migration from whereNotNull() to nonNulls.

Should fix the analysis failures at HEAD.
  • Loading branch information
jakemac53 authored Jun 17, 2024
1 parent f908080 commit 9e6af3b
Show file tree
Hide file tree
Showing 36 changed files with 101 additions and 91 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _test/pkgs/provides_builder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: provides_builder

environment:
sdk: ^3.4.0
sdk: ^3.5.0-259.0.dev

dependencies:
build:
Expand Down
2 changes: 1 addition & 1 deletion _test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: _test
publish_to: none

environment:
sdk: ^3.4.0
sdk: ^3.5.0-259.0.dev

dev_dependencies:
analyzer: any
Expand Down
2 changes: 1 addition & 1 deletion _test_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish_to: none
description: Test infra for writing build tests. Is not published.

environment:
sdk: ^3.4.0
sdk: ^3.5.0-259.0.dev

dependencies:
build: any
Expand Down
2 changes: 1 addition & 1 deletion analysis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
name: _for_analysis_options_only
publish_to: none
environment:
sdk: ^3.4.0
sdk: ^3.5.0-259.0.dev
dev_dependencies:
dart_flutter_team_lints: ^3.1.0
2 changes: 1 addition & 1 deletion build/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 2.4.2-wip

- Bump the min sdk to 3.4.0.
- Bump the min sdk to 3.5.0-259.0.dev.
- Remove some unnecessary casts and non-null assertions now that we have private
field promotion.

Expand Down
2 changes: 1 addition & 1 deletion build/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A package for authoring build_runner compatible code generators.
repository: https://github.com/dart-lang/build/tree/master/build

environment:
sdk: ^3.4.0
sdk: ^3.5.0-259.0.dev

dependencies:
analyzer: ">=1.5.0 <7.0.0"
Expand Down
4 changes: 2 additions & 2 deletions build/test/generate/run_builder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void main() {
config.packages.singleWhere((p) => p.name == 'build');
expect(buildPackage.root, Uri.parse('asset:build/'));
expect(buildPackage.packageUriRoot, Uri.parse('asset:build/lib/'));
expect(buildPackage.languageVersion, LanguageVersion(3, 4));
expect(buildPackage.languageVersion, LanguageVersion(3, 5));

final resolvedBuildUri =
config.resolve(Uri.parse('package:build/foo.txt'))!;
Expand All @@ -106,7 +106,7 @@ void main() {
Package(
'build',
Uri.file('/foo/bar/'),
languageVersion: LanguageVersion(3, 4),
languageVersion: LanguageVersion(3, 5),
),
]),
);
Expand Down
Loading

0 comments on commit 9e6af3b

Please sign in to comment.