-
Notifications
You must be signed in to change notification settings - Fork 92
/
Package.swift
121 lines (120 loc) · 4 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "ResponseDetective",
platforms: [
.iOS(.v8),
.macOS(.v10_10),
.tvOS(.v9)
],
products: [
.library(
name: "ResponseDetective",
targets: [
"ResponseDetective",
"ResponseDetectiveObjC"
]
)
],
dependencies: [
.package(
url: "https://github.com/Quick/Quick.git",
.exact("3.0.0")
),
.package(
url: "https://github.com/Quick/Nimble.git",
.exact("9.0.0")
),
.package(
url: "https://github.com/AliSoftware/OHHTTPStubs.git",
.exact("9.1.0")
)
],
targets: [
.target(
name: "ResponseDetective",
dependencies: ["ResponseDetectiveObjC"],
path: "ResponseDetective",
exclude: [
"Configuration",
"Resources",
"Tests",
"include",
"Sources/RDTHTMLBodyDeserializer.h",
"Sources/RDTXMLBodyDeserializer.h",
"Sources/ResponseDetective.h",
"Sources/RDTHTMLBodyDeserializer.m",
"Sources/RDTBodyDeserializer.h",
"Sources/RDTXMLBodyDeserializer.m"
],
sources: [
"Sources/ResponseRepresentation.swift",
"Sources/ErrorRepresentation.swift",
"Sources/ResponseDetective.swift",
"Sources/BufferOutputFacility.swift",
"Sources/ConsoleOutputFacility.swift",
"Sources/URLEncodedBodyDeserializer.swift",
"Sources/PlaintextBodyDeserializer.swift",
"Sources/ImageBodyDeserializer.swift",
"Sources/JSONBodyDeserializer.swift",
"Sources/Dictionary.swift",
"Sources/URLProtocol.swift",
"Sources/OutputFacility.swift",
"Sources/RequestRepresentation.swift"
]
),
.target(
name: "ResponseDetectiveObjC",
dependencies: [],
path: "ResponseDetective",
exclude: [
"Configuration",
"Resources",
"Tests",
"Sources/ResponseRepresentation.swift",
"Sources/ErrorRepresentation.swift",
"Sources/ResponseDetective.swift",
"Sources/BufferOutputFacility.swift",
"Sources/ConsoleOutputFacility.swift",
"Sources/URLEncodedBodyDeserializer.swift",
"Sources/PlaintextBodyDeserializer.swift",
"Sources/ImageBodyDeserializer.swift",
"Sources/JSONBodyDeserializer.swift",
"Sources/Dictionary.swift",
"Sources/URLProtocol.swift",
"Sources/OutputFacility.swift",
"Sources/RequestRepresentation.swift"
],
sources: [
"Sources/RDTHTMLBodyDeserializer.h",
"Sources/RDTXMLBodyDeserializer.h",
"Sources/ResponseDetective.h",
"Sources/RDTHTMLBodyDeserializer.m",
"Sources/RDTBodyDeserializer.h",
"Sources/RDTXMLBodyDeserializer.m"
],
cSettings: [
.headerSearchPath("ResponseDetective/Sources"),
.headerSearchPath("ResponseDetective")
]
),
.testTarget(
name: "ResponseDetectiveTests",
dependencies: [
"ResponseDetective",
"ResponseDetectiveObjC",
"Quick",
"Nimble",
"OHHTTPStubs"
],
path: "ResponseDetective",
exclude: [
"Configuration",
"Resources",
"Sources",
"include",
],
sources: ["Tests"]
),
]
)