Skip to content

Commit

Permalink
Upgrade to Dart 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-sintotski committed Dec 6, 2024
1 parent ff7dc58 commit d34e3ca
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
# - uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1
# - uses: dart-lang/setup-dart@v1.7.0
- uses: dart-lang/setup-dart@v1.7.0
with:
sdk: 2.19.1
sdk: 3.4.0

- name: Install dependencies
run: dart pub get
Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ linter:
- avoid_positional_boolean_parameters
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_returning_null
- avoid_returning_this
- avoid_setters_without_getters
- avoid_unused_constructor_parameters
Expand Down
8 changes: 4 additions & 4 deletions lib/src/dart_package/dart_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class DartPackage {
String toString() => 'DartPackage(path: $path)';

@override
// ignore: avoid_annotating_with_dynamic
bool operator ==(dynamic other) =>
// ignore: avoid_dynamic_calls
other.runtimeType == runtimeType && path == other.path;
bool operator ==(Object other) =>
other is DartPackage &&
other.runtimeType == runtimeType &&
path == other.path;

@override
int get hashCode {
Expand Down
6 changes: 2 additions & 4 deletions lib/src/generic_dependency_usage_report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ class DependencyUsageReport<DependencyType> {
'references: $references)';

@override
// ignore: avoid_annotating_with_dynamic
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is DependencyUsageReport<DependencyType> &&
other.runtimeType == runtimeType &&
// ignore: avoid_dynamic_calls
dependencyName == other.dependencyName &&
// ignore: avoid_dynamic_calls
const DeepCollectionEquality().equals(references, other.references);

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ executables:
borg: main

environment:
sdk: ">=2.15.0 <3.0.0"
sdk: ">=2.15.0 <4.0.0"

dependencies:
args: ^2.3.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: package_with_pubspec_lock

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
args: ^2.3.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: package_without_pubspec_lock

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
args: ^2.3.0
Expand Down

0 comments on commit d34e3ca

Please sign in to comment.