-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPackage.swift
50 lines (48 loc) · 1.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
// 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: "ReactiveAPI",
platforms: [
.iOS(.v12),
.macOS(.v10_15),
.tvOS(.v12),
.watchOS(.v5),
],
products: [
.library(name: "ReactiveAPI", targets: ["ReactiveAPI"]),
.library(name: "ReactiveAPIExt", targets: ["ReactiveAPIExt"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift", from: "6.5.0"),
.package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.0.0"),
.package(name: "Swifter", url: "https://github.com/httpswift/swifter", from: "1.5.0"),
],
targets: [
.target(
name: "ReactiveAPI",
dependencies: [
"RxSwift",
.product(name: "RxCocoa", package: "RxSwift"),
.product(name: "RxBlocking", package: "RxSwift"),
]),
.target(
name: "ReactiveAPIExt",
dependencies: ["RxSwift"]),
.testTarget(
name: "ReactiveAPITests",
dependencies: [
"ReactiveAPI",
"Swifter",
"OHHTTPStubs",
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"),
.product(name: "RxBlocking", package: "RxSwift"),
]),
.testTarget(
name: "ReactiveAPIExtTests",
dependencies: [
"ReactiveAPIExt",
.product(name: "RxBlocking", package: "RxSwift"),
]),
]
)