Skip to content

Commit

Permalink
fix warnings and update flutter version
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed Dec 13, 2022
1 parent e8cb002 commit 5d6cdf0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
# same with pubspec.yaml
flutter-version: "2.2.0"
flutter-version: "3.3.8"
- run: flutter pub get
working-directory: dart_native/example
- run: flutter test --no-pub test/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
# same with pubspec.yaml
flutter-version: "2.2.0"
flutter-version: "3.3.8"
- run: flutter pub get
working-directory: dart_native/example
- run: flutter analyze --no-pub --no-current-package lib/ test/
Expand Down
1 change: 0 additions & 1 deletion dart_native/example/lib/android/unit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:dart_native_example/android/runtimestub.dart';
import 'package:dart_native_example/android/entity.dart';
import 'package:dart_native_example/android/runtimestub_async.dart';

import 'delegate_stub.dart';
import 'package:dart_native_example/dn_unit_test.dart';
import 'package:ffi/ffi.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ArrayType _getValueType(dynamic value) {
} else if (value is bool) {
return ArrayType('bool', '[Z');
} else if (value is JObject) {
return ArrayType('object', '[L' + value.className! + ';');
return ArrayType('object', '[L${value.className!};');
} else {
throw 'Invalid type in JArray.';
}
Expand Down

0 comments on commit 5d6cdf0

Please sign in to comment.