Skip to content

Commit

Permalink
upgrade: flutter 3.27, dart 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnn committed Dec 28, 2024
1 parent e9942b4 commit 5c65b14
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: melos build:example:android

build_example_ios:
runs-on: macos-14
runs-on: macos-15
timeout-minutes: 20
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dart 3.5.4
flutter 3.24.5
dart 3.6.0
flutter 3.27.1
java temurin-17.0.13+11
2 changes: 1 addition & 1 deletion .xcode-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.4
16.2
2 changes: 2 additions & 0 deletions examples/nilts_example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class DefinedAsyncValueGetterType extends DartLintRule {
final typeArgument = returnType.typeArguments.first;
if (typeArgument is VoidType ||
typeArgument is InvalidType ||
typeArgument is NeverType) return;
typeArgument is NeverType) {
return;
}

reporter.atNode(node, _code);
});
Expand Down
4 changes: 3 additions & 1 deletion packages/nilts/lib/src/lints/defined_value_getter_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class DefinedValueGetterType extends DartLintRule {
if (returnType is VoidType ||
returnType is InvalidType ||
returnType is NeverType ||
returnType.isDartAsyncFuture) return;
returnType.isDartAsyncFuture) {
return;
}

reporter.atNode(node, _code);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class NoSupportWebPlatformCheck extends DartLintRule {
identifierName.name != 'isWindows' &&
identifierName.name != 'isAndroid' &&
identifierName.name != 'isIOS' &&
identifierName.name != 'isFuchsia') return;
identifierName.name != 'isFuchsia') {
return;
}

// Do nothing if the package of identifier is not `dart.io`.
final library = identifierName.staticElement?.library;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ class _ReplaceWithMediaQueryXxxOf extends DartFix {
// Do nothing if the operator of method is not `.` and not `?.`.
final operatorToken = node.operator;
if (operatorToken.type != TokenType.PERIOD &&
operatorToken.type != TokenType.QUESTION_PERIOD) return;
operatorToken.type != TokenType.QUESTION_PERIOD) {
return;
}

final methodTarget = node.realTarget;
if (methodTarget is! MethodInvocation) return;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ environment:
sdk: '>=3.0.0 <4.0.0'

dev_dependencies:
melos: ^6.1.0
melos: ^6.2.0

0 comments on commit 5c65b14

Please sign in to comment.