flutter/examples/platform_channel/macos/Runner
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
..
Assets.xcassets [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00
Base.lproj [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00
Configs [macOS] Battery check in platform_channel sample (#123354) 2023-03-23 15:19:10 -07:00
AppDelegate.swift [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00
DebugProfile.entitlements [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00
Info.plist [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00
MainFlutterWindow.swift [macOS] Battery check in platform_channel sample (#123354) 2023-03-23 15:19:10 -07:00
PowerSource.swift [macOS] Battery check in platform_channel sample (#123354) 2023-03-23 15:19:10 -07:00
Release.entitlements [macOS] Add platform_channel sample/test (#123141) 2023-03-23 11:56:23 -07:00