-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPackage.swift
More file actions
54 lines (53 loc) · 1.63 KB
/
Package.swift
File metadata and controls
54 lines (53 loc) · 1.63 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
52
53
54
// swift-tools-version:6.2
import PackageDescription
let package = Package(
name: "BetterBlueKit",
platforms: [
.iOS(.v17),
.macOS(.v14),
.watchOS(.v11)
],
products: [
.library(
name: "BetterBlueKit",
targets: ["BetterBlueKit"]
),
.executable(
name: "bbcli",
targets: ["bbcli"]
)
],
dependencies: [
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.61.0")
],
targets: [
.target(
name: "BetterBlueKit",
dependencies: [],
path: "Sources/BetterBlueKit",
resources: [
// Bundles the shared troubleshooting document so the main
// app and Watch app can both surface it in-UI via
// `TroubleshootingDocument.markdown`. The file at the
// repo root is a symlink to the same source so GitHub
// renders it at its standard location.
.process("Resources")
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug)),
.define("RELEASE", .when(configuration: .release))
],
plugins: [.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins")],
),
.executableTarget(
name: "bbcli",
dependencies: ["BetterBlueKit"],
path: "Sources/BBCLI"
),
.testTarget(
name: "BetterBlueKitTests",
dependencies: ["BetterBlueKit"]
)
],
swiftLanguageModes: [.v5, .v6],
)