[macOS] Add platform_channel sample/test (#123141)

Adds a macOS implementation of the platform_channel example,
demonstrating method channels and event channels with a battery power
plugin.

Adds platform_channel_sample_test_macos macOS host test to verify the
sample works.

Issue: https://github.com/flutter/flutter/issues/79204
This commit is contained in:
Chris Bracken
2023-03-23 11:56:23 -07:00
committed by GitHub
parent 28d40a4d2f
commit 674ff1573f
24 changed files with 1477 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/integration_tests.dart';
Future<void> main() async {
await task(createPlatformChannelSampleTest(deviceIdOverride: 'macos'));
}