Commit Graph

3 Commits

Author SHA1 Message Date
Chris Bracken
99146c2050
[macOS] platform_channel sample style cleanups (#123569)
[macOS] platform_channel sample style cleanups
2023-03-28 01:36:47 +00:00
Chris Bracken
ce68d97983
[macOS] Battery check in platform_channel sample (#123354)
Adds a check for the case where a device has no battery present. The
devicelab test expects the text "No battery." in the case where a device
has no battery. This is triggered by returning an error with a
NO_BATTERY error code.

Also applies some cosmetic fixes:
* Amends a copyright notice to Flutter instead of com.example
* Deletes an unused test.

Issue: https://github.com/flutter/flutter/issues/79204
2023-03-23 15:19:10 -07:00
Chris Bracken
674ff1573f
[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
2023-03-23 11:56:23 -07:00