Skip to content

Commit a14d4f9

Browse files
committed
Update Flutter version in github action.
1 parent 24309be commit a14d4f9

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
- uses: subosito/flutter-action@v2
1313
with:
14-
flutter-version: '3.3.0'
14+
flutter-version: '3.24.5'
1515
channel: 'stable'
1616

1717
- name: Clean Dependencies
@@ -21,7 +21,7 @@ jobs:
2121
run: flutter packages get
2222

2323
- name: Format
24-
run: flutter format --set-exit-if-changed lib test
24+
run: dart format --set-exit-if-changed lib test
2525

2626
- name: Analyze
2727
run: flutter analyze lib test

test/fake_unity_widget_controllers.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class FakePlatformUnityWidget {
77
FakePlatformUnityWidget(int id, Map<dynamic, dynamic> params)
88
: channel = MethodChannel(
99
'plugin.xraph.com/unity_view_$id', const StandardMethodCodec()) {
10-
channel.setMockMethodCallHandler(onMethodCall);
10+
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
11+
.setMockMethodCallHandler(channel, onMethodCall);
1112
}
1213

1314
MethodChannel channel;

test/flutter_unity_widget_test.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ Future<void> main() async {
1616
TestWidgetsFlutterBinding.ensureInitialized();
1717

1818
setUpAll(() {
19-
SystemChannels.platform_views.setMockMethodCallHandler(
20-
fakePlatformViewsController.fakePlatformViewsMethodHandler);
19+
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
20+
.setMockMethodCallHandler(SystemChannels.platform_views,
21+
fakePlatformViewsController.fakePlatformViewsMethodHandler);
2122
});
2223

2324
setUp(() {
2425
fakePlatformViewsController.reset();
2526
});
2627

2728
tearDown(() {
28-
channel.setMockMethodCallHandler(null);
29+
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
30+
.setMockMethodCallHandler(channel, null);
2931
});
3032

3133
testWidgets('Unity widget ready', (WidgetTester tester) async {

0 commit comments

Comments
 (0)