mirror of
https://github.com/flutter/flutter
synced 2024-08-25 11:07:06 +00:00
![Chris Bracken](/assets/img/avatar_default.png)
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
11 lines
396 B
Dart
11 lines
396 B
Dart
// 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'));
|
|
}
|