-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
51 lines (46 loc) · 1.68 KB
/
Copy pathPackage.swift
File metadata and controls
51 lines (46 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "solarman-swift",
platforms: [
.macOS(.v26),
.iOS(.v26),
.macCatalyst(.v26),
.tvOS(.v26),
.watchOS(.v26),
.visionOS(.v26),
],
products: [
.library(name: "SolarmanV5", targets: ["SolarmanV5"]),
],
dependencies: [
.package(url: "https://github.com/3a4oT/modbus-swift.git", from: "1.0.2"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.91.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.7.1"),
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.7.1"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.9.1"),
],
targets: [
// MARK: - SolarmanV5 (V5 Protocol Client)
// Async/await client for Solarman V5 WiFi data loggers
.target(
name: "SolarmanV5",
dependencies: [
.product(name: "ModbusCore", package: "modbus-swift"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
],
),
// MARK: - Tests
.testTarget(
name: "SolarmanV5Tests",
dependencies: [
"SolarmanV5",
.product(name: "NIOEmbedded", package: "swift-nio"),
],
),
],
)