17414656a9
- Updated README.md to reflect platform support for iPadOS. - Implemented isDriverAvailable method in FlutterUsbSerialPlugin for DriverKit readiness check. - Added DriverKitSerialClient C source and header files for iPadOS integration. - Created Swift Package for iPadOS support. - Updated pubspec.yaml and flutter_usb_serial.dart to clarify platform compatibility. - Enhanced tests to verify isDriverAvailable functionality. Signed-off-by: Tony <tonylu@tony-cloud.com>
38 lines
848 B
Swift
38 lines
848 B
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "flutter_usb_serial",
|
|
platforms: [
|
|
.iOS("16.0"),
|
|
],
|
|
products: [
|
|
.library(name: "flutter-usb-serial", targets: ["flutter_usb_serial"]),
|
|
],
|
|
dependencies: [
|
|
.package(name: "FlutterFramework", path: "../FlutterFramework"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "DriverKitSerialClient",
|
|
path: "Sources/DriverKitSerialClient",
|
|
publicHeadersPath: "include",
|
|
linkerSettings: [
|
|
.linkedFramework("IOKit"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "flutter_usb_serial",
|
|
dependencies: [
|
|
"DriverKitSerialClient",
|
|
.product(name: "FlutterFramework", package: "FlutterFramework"),
|
|
],
|
|
path: "Sources/flutter_usb_serial",
|
|
resources: [
|
|
.process("Resources"),
|
|
]
|
|
),
|
|
]
|
|
)
|