-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
49 lines (47 loc) · 2.52 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
// 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: "CNZone",
platforms: [
.iOS(.v13)
],
products: [
.library(name: "CNZone",
targets: ["CNZone"])
],
dependencies: [
.package(url: "https://github.com/SnapKit/SnapKit.git", .upToNextMajor(from: "5.0.1")),
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "15.0.0")),
.package(url: "https://github.com/RxSwiftCommunity/RxGesture.git", .upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from:"6.2.0")),
.package(url: "https://github.com/ashleymills/Reachability.swift.git", .branch("master")),
.package(url: "https://github.com/jdg/MBProgressHUD.git", .branch("master")),
.package(url: "https://github.com/malcommac/SwiftDate.git", .upToNextMajor(from: "7.0.0"))
// https://github.com/ReactiveX/RxSwift.git
],
targets: [
.target(name: "CNZone",
dependencies: [
.product(name: "RxSwift", package: "RxSwift", condition: .when(platforms: [.iOS])),
.product(name: "RxCocoa", package: "RxSwift", condition: .when(platforms: [.iOS])),
.product(name: "RxGesture", package: "RxGesture", condition: .when(platforms: [.iOS])),
.product(name: "Reachability", package: "Reachability.swift", condition: .when(platforms: [.iOS])),
.product(name: "SnapKit", package: "SnapKit", condition: .when(platforms: [.iOS])),
.product(name: "RxMoya", package: "Moya", condition: .when(platforms: [.iOS])),
.product(name: "SwiftDate", package: "SwiftDate", condition: .when(platforms: [.iOS])),
.product(name: "MBProgressHUD", package: "MBProgressHUD", condition: .when(platforms: [.iOS]))
],
path: "Sources",
exclude: [],
resources: [
.process("HUD/sources/infomation.png"),
.process("HUD/sources/[email protected]"),
.process("HUD/sources/[email protected]"),
.process("HUD/sources/Checkmark.png"),
.process("HUD/sources/[email protected]"),
.process("HUD/sources/[email protected]"),
]),
],
swiftLanguageVersions: [.v5]
)