-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
90 lines (87 loc) · 3.56 KB
/
Package.swift
File metadata and controls
90 lines (87 loc) · 3.56 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
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
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if canImport(Core)
import Core
#endif
let package = Package(
name: "FunNet",
platforms: [.iOS(.v13)],
products: [
.library(
name: "FunNet",
targets: ["FunNet"]),
.library(
name: "FunNet/Core",
targets: ["FunNetCore"]),
.library(
name: "FunNet/Combine",
targets: ["FunNetCombine"]),
.library(
name: "FunNet/ReactiveSwift",
targets: ["FunNetReactiveSwift"]),
.library(
name: "FunNet/Multipart",
targets: ["FunNetMultipart"]),
.library(
name: "FunNet/ErrorHandling",
targets: ["ErrorHandling"]),
.library(
name: "FunNet/ErrorHandlingCombine",
targets: ["ErrorHandlingCombine"])
],
dependencies: [
.package(url: "https://github.com/LithoByte/LithoOperators.git", .branch("master")),
.package(name: "Slippers", url: "https://github.com/LithoByte/slippers", .branch("cjc8/spm")),
.package(name: "LithoUtils/Post13", url: "https://github.com/LithoByte/litho-utils", .branch("cjc8/spm")),
.package(url: "https://github.com/Moya/ReactiveSwift.git", .branch("master"))
],
targets: [
.target(
name: "FunNet",
dependencies: ["LithoOperators",
.productItem(name: "LithoUtils",
package: "LithoUtils/Post13",
condition: nil),
"Slippers",
"ReactiveSwift",
.targetItem(name: "FunNetCore", condition: nil),
.targetItem(name: "FunNetCombine", condition: nil),
.targetItem(name: "FunNetReactiveSwift", condition: nil),
.targetItem(name: "FunNetMultipart", condition: nil),
.targetItem(name: "ErrorHandling", condition: nil),
.targetItem(name: "ErrorHandlingCombine", condition: nil)],
path: nil
),
.target(
name: "FunNetCore",
dependencies: ["LithoOperators", "Slippers"],
path: "Sources/funnet/Core"
),
.target(
name: "FunNetCombine",
dependencies: [.targetItem(name: "FunNetCore", condition: nil), "Slippers"],
path: "Sources/funnet/Combine"
),
.target(
name: "FunNetReactiveSwift",
dependencies: [.targetItem(name: "FunNetCore", condition: nil), "ReactiveSwift"],
path: "Sources/funnet/ReactiveSwift"
),
.target(
name: "FunNetMultipart",
dependencies: ["LithoOperators", .targetItem(name: "FunNetCore", condition: nil)],
path: "Sources/funnet/Multipart"
),
.target(
name: "ErrorHandling",
dependencies: ["LithoOperators", .productItem(name: "LithoUtils", package: "LithoUtils/Post13", condition: nil), "Slippers"],
path: "Sources/funnet/ErrorHandling"
),
.target(
name: "ErrorHandlingCombine",
dependencies: [.targetItem(name: "ErrorHandling", condition: nil), "LithoOperators", "Slippers", .productItem(name: "LithoUtils", package: "LithoUtils/Post13", condition: nil)],
path: "Sources/funnet/ErrorHandlingCombine"
),
]
)