From 8e95b371be6bb88d1716301034d2463d032c4bbd Mon Sep 17 00:00:00 2001 From: littleGnAl Date: Wed, 9 Aug 2023 17:37:09 +0800 Subject: [PATCH] fix: [android] Bound the IrisMethodChannel lifecycle with the FlutterEngine --- lib/src/iris_method_channel.dart | 1 - test/iris_method_channel_test.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/iris_method_channel.dart b/lib/src/iris_method_channel.dart index 26d7d53..22b47dc 100644 --- a/lib/src/iris_method_channel.dart +++ b/lib/src/iris_method_channel.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:ffi' as ffi; import 'dart:isolate'; -import 'dart:typed_data'; import 'package:async/async.dart'; import 'package:ffi/ffi.dart'; diff --git a/test/iris_method_channel_test.dart b/test/iris_method_channel_test.dart index fb49283..27c7a7e 100644 --- a/test/iris_method_channel_test.dart +++ b/test/iris_method_channel_test.dart @@ -452,8 +452,8 @@ void main() { test('disposed after receive onDetachedFromEngine_fromPlatform', () async { await irisMethodChannel.initilize([]); + // Simulate the `MethodChannel` call from native side const StandardMethodCodec codec = StandardMethodCodec(); - final ByteData data = codec.encodeMethodCall(const MethodCall( 'onDetachedFromEngine_fromPlatform', ));