Skip to content

Commit

Permalink
fix: [android] Bound the IrisMethodChannel lifecycle with the Flutter…
Browse files Browse the repository at this point in the history
…Engine
  • Loading branch information
littleGnAl committed Aug 9, 2023
1 parent 0dd3b2a commit 8e95b37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/src/iris_method_channel.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/iris_method_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
));
Expand Down

0 comments on commit 8e95b37

Please sign in to comment.