Unverified Commit 5a7b0bdf authored by gaaclarke's avatar gaaclarke Committed by GitHub

macos isolate platform channels (#110882)

parent 2b740f39
......@@ -173,7 +173,7 @@ class _TestAppState extends State<TestApp> {
() => basicStringMessageToUnknownChannel(),
() => basicJsonMessageToUnknownChannel(),
() => basicStandardMessageToUnknownChannel(),
if (Platform.isIOS || Platform.isAndroid)
if (Platform.isIOS || Platform.isAndroid || Platform.isMacOS)
() => basicBackgroundStandardEcho(123),
];
Future<TestStepResult>? _result;
......
......@@ -99,6 +99,13 @@ class MainFlutterWindow: NSWindow {
binaryMessenger: registrar.messenger,
codec: FlutterStandardMethodCodec(readerWriter: ExtendedReaderWriter())))
FlutterBasicMessageChannel(
name: "std-echo", binaryMessenger: registrar.messenger,
codec: FlutterStandardMessageCodec.sharedInstance()
).setMessageHandler { message, reply in
reply(message)
}
super.awakeFromNib()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment