-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
220 lines (215 loc) · 9.15 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// swift-tools-version: 5.6
import Foundation
import PackageDescription
let package = Package(
name: "NimbusSDK",
platforms: [.iOS(.v12)],
products: [
.library(
name: "NimbusKit",
targets: ["NimbusTarget"]),
.library(
name: "NimbusRenderKit",
targets: ["NimbusRenderTarget"]),
.library(
name: "NimbusRenderStaticKit",
targets: ["NimbusRenderStaticTarget"]),
.library(
name: "NimbusRenderVideoKit",
targets: ["NimbusRenderVideoTarget"]),
.library(
name: "NimbusRenderVASTKit",
targets: ["NimbusRenderVASTTarget"]),
.library(
name: "NimbusRequestKit",
targets: ["NimbusRequestTarget"]),
.library(
name: "NimbusGAMKit",
targets: ["NimbusGAMKit"]),
.library(
name: "NimbusAdMobKit",
targets: ["NimbusAdMobKit"]),
.library(
name: "NimbusGoogleKit",
targets: ["NimbusGoogleKit"]),
.library(
name: "NimbusFANKit",
targets: ["NimbusRenderFANKit", "NimbusRequestFANKit", "FBAudienceNetwork"]),
.library(
name: "NimbusLiveRampKit",
targets: ["NimbusLiveRampKit"]),
.library(
name: "NimbusRequestAPSKit",
targets: ["NimbusRequestAPSKit", "DTBiOSSDK"]),
.library(
name: "NimbusUnityKit",
targets: ["NimbusUnityKit", "UnityAds"]),
.library(
name: "NimbusVungleKit",
targets: ["NimbusVungleKit"]),
.library(
name: "NimbusMintegralKit",
targets: ["NimbusMintegralKit"]),
.library(
name: "NimbusMobileFuseKit",
targets: ["NimbusMobileFuseKit"]),
.library(
name: "NimbusRequestAPSKit-WithoutDTBiOSSDK",
targets: ["NimbusRequestAPSKit"]),
.library(
name: "NimbusFANKit-WithoutFBAudienceNetwork",
targets: ["NimbusRenderFANKit", "NimbusRequestFANKit"]),
.library(
name: "NimbusUnityKit-WithoutUnityAds",
targets: ["NimbusUnityKit"]),
],
dependencies: [
.package(url: "https://github.com/LiveRamp/ats-sdk-ios.git", "1.4.0" ..< "3.0.0"),
.package(url: "https://github.com/birdrides/mockingbird.git", from: "0.20.0"),
.package(url: "https://github.com/Vungle/VungleAdsSDK-SwiftPackageManager.git", from: "7.4.0"),
.package(
url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
"11.7.0"..<"13.0.0"
),
.package(
url: "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git",
from: "3.18.4"
),
.package(url: "https://github.com/Mintegral-official/MintegralAdSDK-Swift-Package", from: "7.6.7"),
],
targets: [
.framework(
name: "NimbusRenderTarget",
dependencies: ["NimbusCoreKit", "NimbusRenderKit", "OMSDK_Adsbynimbus"]),
.framework(
name: "NimbusRequestTarget",
dependencies: ["NimbusCoreKit", "NimbusRequestKit"]),
.framework(
name: "NimbusRenderStaticTarget",
dependencies: ["NimbusRenderTarget", "NimbusRenderStaticKit"]),
.framework(
name: "NimbusRenderVideoTarget",
dependencies: ["NimbusRenderTarget", "NimbusRenderVideoKit", .GoogleInteractiveMediaAds]),
.framework(
name: "NimbusRenderVASTTarget",
dependencies: ["NimbusRenderStaticTarget", "NimbusRenderVASTKit"]),
.framework(
name: "NimbusTarget",
dependencies: [
"NimbusRequestTarget",
"NimbusRenderTarget",
"NimbusRenderStaticTarget",
"NimbusRenderVideoTarget",
"NimbusKit"
]),
.target(
name: "NimbusRenderFANKit",
dependencies: ["NimbusRenderTarget"]),
.target(
name: "NimbusRequestFANKit",
dependencies: ["NimbusRequestTarget"]),
.target(
name: "NimbusGAMKit",
dependencies: ["NimbusTarget", .GoogleMobileAds]),
.target(
name: "NimbusAdMobKit",
dependencies: ["NimbusTarget", .GoogleMobileAds]),
.target(
name: "NimbusGoogleKit",
dependencies: ["NimbusTarget", .GoogleMobileAds]),
.target(
name: "NimbusLiveRampKit",
dependencies: ["NimbusRequestTarget", .LiveRamp]),
.target(
name: "NimbusRequestAPSKit",
dependencies: ["NimbusRequestTarget"]),
.target(
name: "NimbusUnityKit",
dependencies: ["NimbusRenderTarget", "NimbusRequestTarget"]),
.target(
name: "NimbusMintegralKit",
dependencies: ["NimbusRenderTarget", "NimbusRequestTarget", .Mintegral]),
.target(
name: "NimbusMobileFuseKit",
dependencies: ["NimbusRenderTarget", "NimbusRequestTarget", "MobileFuseSDK"]),
.target(
name: "NimbusVungleKit",
dependencies: ["NimbusRenderTarget", "NimbusRequestTarget", .Vungle]),
.binaryTarget(
name: "MobileFuseSDK",
url: "https://cdn.mobilefuse.com/sdk/1.7.6.zip",
checksum: "0b4df7fa4b0923abe87b0fbff67c22c6f1157784fb841d7d288abaec3a94b850"),
.binaryTarget(
name: "OMSDK_Adsbynimbus",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/external/omsdk/1.5.2/OMSDK_Adsbynimbus-1.5.2.zip",
checksum: "f278a5a40efb856d028182e93a765b67c28b8ee3ff8b304d3e3d4bd882255442"),
.binaryTarget(
name: "DTBiOSSDK",
url: "https://mdtb-sdk-packages.s3.us-west-2.amazonaws.com/iOS_APS_SDK/APS_iOS_SDK-4.9.7.zip",
checksum: "99c5e84ffc914be96e842871302888182b457f87b7bb625c0c8157c4d2678907"),
.binaryTarget(
name: "FBAudienceNetwork",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/external/facebook/6.15.0/FBAudienceNetwork.zip",
checksum: "b73dc30685aa03d626e7d53774baa5e4b8cd3467ddaeea8d94d96592e875aafc"),
.binaryTarget(
name: "UnityAds",
url: "https://github.com/Unity-Technologies/unity-ads-ios/releases/download/4.12.2/UnityAds.zip",
checksum: "897c70aae65ab340c2bff0038a933dee4611c2acd664e027245e23ac16e5c1fe"),
]
)
extension Target {
static func framework(name: String, dependencies: [Target.Dependency]) -> Target {
target(
name: name,
dependencies: dependencies,
path: "Sources/\(name.replacingOccurrences(of: "Target", with: "Kit"))",
sources: ["Export.swift"])
}
}
extension Target.Dependency {
static let LiveRamp = product(name: "LRAtsSDK", package: "ats-sdk-ios")
static let MockingBird = product(name: "Mockingbird", package: "Mockingbird")
static let Vungle = product(name: "VungleAdsSDK", package: "VungleAdsSDK-SwiftPackageManager")
static let GoogleMobileAds = product(
name: "GoogleMobileAds",
package: "swift-package-manager-google-mobile-ads"
)
static let GoogleInteractiveMediaAds = product(
name: "GoogleInteractiveMediaAds",
package: "swift-package-manager-google-interactive-media-ads-ios"
)
static let Mintegral = product(
name: "MintegralAdSDK",
package: "MintegralAdSDK-Swift-Package"
)
}
package.targets += [
.binaryTarget(
name: "NimbusCoreKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusCoreKit-2.24.1.zip",
checksum: "200e4724e8e3d990dd3fbb64a0caec60a6f2a4ddfc76488365ce96fdbb407a27"),
.binaryTarget(
name: "NimbusKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusKit-2.24.1.zip",
checksum: "da4471e971a91fab4cf4f42d5723f6946f8d4516210923d0bb90e05ed71e6d7c"),
.binaryTarget(
name: "NimbusRequestKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusRequestKit-2.24.1.zip",
checksum: "8652a76aec1a1482c3aa49b157d9bd7946ae302b023e297763c9b92ae585fd91"),
.binaryTarget(
name: "NimbusRenderKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusRenderKit-2.24.1.zip",
checksum: "8b03dbd69334b9fb656861aff913f6b3c3926ac8c5b65fc4c6eea801404abf7b"),
.binaryTarget(
name: "NimbusRenderStaticKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusRenderStaticKit-2.24.1.zip",
checksum: "8b07e79f60612a80e74c904e99fe3fe7b8340031316ee7ecf32eaa7962e9f572"),
.binaryTarget(
name: "NimbusRenderVideoKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusRenderVideoKit-2.24.1.zip",
checksum: "bd3b411369920f08844b08383ebfb9a80635a3803c756ec0b9915d7506110917"),
.binaryTarget(
name: "NimbusRenderVASTKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.24.1/NimbusRenderVASTKit-2.24.1.zip",
checksum: "12bd64b9da2b32b2441ec0637747dee5fa5a30c6ad6ffd110b6f363c632875c7"),
]