-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
46 lines (44 loc) · 1.42 KB
/
Package.swift
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
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "PorscheConnect",
platforms: [.macOS(.v12), .iOS(.v15), .tvOS(.v15), .watchOS(.v8)],
products: [
.executable(
name: "porsche",
targets: ["CommandLineTool"]),
.library(
name: "PorscheConnect",
targets: ["PorscheConnect"]),
],
dependencies: [
.package(url: "https://github.com/envoy/Embassy.git", from: "4.1.6"),
.package(url: "https://github.com/envoy/Ambassador.git", from: "4.0.5"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2"),
.package(url: "https://github.com/mochidev/XCTAsync.git", .upToNextMajor(from: "1.0.1")),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.6.0"),
],
targets: [
.executableTarget(
name: "CommandLineTool",
dependencies: [
.target(name: "PorscheConnect", condition: .when(platforms: [.macOS])),
.product(
name: "ArgumentParser",
package: "swift-argument-parser",
condition: .when(platforms: [.macOS])),
]),
.target(
name: "PorscheConnect",
dependencies: ["SwiftSoup"]),
.testTarget(
name: "PorscheConnectTests",
dependencies: [
"PorscheConnect",
"Embassy",
"Ambassador",
"XCTAsync"
]),
]
)