-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
35 lines (33 loc) · 1.01 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
// swift-tools-version:5.6
import PackageDescription
#if canImport(Combine)
let hasCombine = true
#else
let hasCombine = false
#endif
let package = Package(
name: "Jack",
platforms: [ .macOS(.v12), .iOS(.v15), .tvOS(.v15) ],
products: [
.library(
name: "Jack",
targets: ["Jack"]),
],
dependencies: [
.package(url: "https://github.com/jectivex/JXKit.git", from: "3.2.0"),
hasCombine ? nil : .package(url: "https://github.com/OpenCombine/OpenCombine.git", from: "0.13.0"),
].compactMap({ $0 }),
targets: [
.target(
name: "Jack",
dependencies: [
.product(name: "JXKit", package: "JXKit"),
hasCombine ? nil : .product(name: "OpenCombineShim", package: "OpenCombine"),
].compactMap({ $0 }),
resources: [.process("Resources")]),
.testTarget(
name: "JackTests",
dependencies: ["Jack"],
resources: [.copy("TestResources")]),
]
)