This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
54 lines (52 loc) · 1.65 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "MBNetworkKit",
platforms: [
.iOS(.v12),
],
products: [
.library(name: "MBNetworkKit",
targets: ["MBNetworkKit"])
],
dependencies: [
.package(name: "MBCommonKit",
url: "https://github.com/Daimler/MBSDK-CommonKit-iOS.git",
.upToNextMajor(from: "3.0.0")),
.package(url: "https://github.com/Alamofire/Alamofire.git",
.upToNextMajor(from: "5.0.0")),
.package(url: "https://github.com/Alamofire/AlamofireImage.git",
.upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/daltoniam/Starscream",
.upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/datatheorem/TrustKit.git",
.upToNextMajor(from: "1.7.0")),
.package(url: "https://github.com/Quick/Nimble.git",
.upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/Quick/Quick.git",
.upToNextMajor(from: "2.0.0"))
],
targets: [
.target(name: "MBNetworkKit",
dependencies: [
.byName(name: "MBCommonKit"),
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "AlamofireImage", package: "AlamofireImage"),
.product(name: "Starscream", package: "Starscream"),
.product(name: "TrustKit", package: "TrustKit")
],
path: "MBNetworkKit/MBNetworkKit",
exclude: ["Info.plist"],
resources: [
.copy("Basic/CertPinning/CertPinnedDomainHashes.plist")
]),
.testTarget(name: "MBNetworkKitTests",
dependencies: [
.byName(name: "Nimble"),
.byName(name: "Quick"),
],
path: "MBNetworkKit/MBNetworkKitTests",
exclude: ["Info.plist"])
],
swiftLanguageVersions: [.v5]
)