forked from wwt/SwiftCurrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
89 lines (87 loc) · 3.63 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftCurrent",
platforms: [.iOS(.v11), .macOS(.v11), .tvOS(.v14), .watchOS(.v7)],
products: [
.library(
name: "SwiftCurrent",
targets: ["SwiftCurrent"]),
.library(
name: "SwiftCurrent_UIKit",
targets: ["SwiftCurrent_UIKit"]),
.library(
name: "SwiftCurrent_SwiftUI",
targets: ["SwiftCurrent_SwiftUI"]),
.library(
name: "SwiftCurrent_Testing",
targets: ["SwiftCurrent_Testing_ObjC", "SwiftCurrent_Testing"]),
.executable(name: "SwiftCurrent_CLI",
targets: ["SwiftCurrent_CLI"])
],
dependencies: [
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: Version("2.0.0-beta.1")),
.package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: Version("2.0.0-beta.1")),
.package(url: "https://github.com/apple/swift-algorithms", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/sindresorhus/ExceptionCatcher", from: "2.0.0"),
.package(url: "https://github.com/nalexn/ViewInspector.git", from: "0.9.1"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.3"),
.package(url: "https://github.com/apple/swift-syntax.git", .exact("0.50600.1"))
],
targets: [
.target(
name: "SwiftCurrent",
dependencies: []),
.target(
name: "SwiftCurrent_UIKit",
dependencies: ["SwiftCurrent"]),
.target(
name: "SwiftCurrent_SwiftUI",
dependencies: ["SwiftCurrent"]),
.target(
name: "SwiftCurrent_Testing_ObjC",
dependencies: [],
exclude: ["SwiftCurrent_UIKitTests-Bridging-Header.h", "SwiftUIExampleTests-Bridging-Header.h", "UIKitExampleTests-Bridging-Header.h"],
publicHeadersPath: "Include"),
.target(
name: "SwiftCurrent_Testing",
dependencies: ["SwiftCurrent_Testing_ObjC",
"SwiftCurrent"]),
.target(name: "SwiftCurrent_CLI",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxParser", package: "swift-syntax"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]),
.testTarget(
name: "SwiftCurrentTests",
dependencies: [
"SwiftCurrent",
"SwiftCurrent_Testing",
"CwlPreconditionTesting",
"CwlCatchException",
"ExceptionCatcher",
.product(name: "Algorithms", package: "swift-algorithms")
],
exclude: ["Info.plist", "SwiftCurrent.xctestplan"]),
.testTarget(
name: "SwiftCurrent-SwiftUITests",
dependencies: [
"SwiftCurrent",
"SwiftCurrent_Testing",
"SwiftCurrent_SwiftUI",
"CwlPreconditionTesting",
"CwlCatchException",
"ViewInspector",
.product(name: "Algorithms", package: "swift-algorithms")
],
path: "Tests/SwiftCurrent_SwiftUITests"),
.testTarget(
name: "SwiftCurrentMultiPlatformTests",
dependencies: [
"SwiftCurrent",
"SwiftCurrent_Testing"
]),
]
)