forked from adsbynimbus/nimbus-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
195 lines (190 loc) · 8.2 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
// 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: "NimbusRequestKit",
targets: ["NimbusRequestTarget"]),
.library(
name: "NimbusGAMKit",
targets: ["NimbusGAMKit"]),
.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: "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.2.1"),
.package(
url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
"9.12.0"..<"12.0.0"
),
.package(
url: "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git",
from: "3.18.4"
)
],
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: "NimbusMobileFuseTarget",
dependencies: ["NimbusRequestTarget", "NimbusRenderTarget", "NimbusMobileFuseKit", "MobileFuseSDK"]),
.framework(
name: "NimbusTarget",
dependencies: [
"NimbusRequestTarget",
"NimbusRenderTarget",
"NimbusRenderStaticTarget",
"NimbusRenderVideoTarget",
"NimbusMobileFuseTarget",
"NimbusKit"
]),
.target(
name: "NimbusRenderFANKit",
dependencies: ["NimbusRenderTarget"]),
.target(
name: "NimbusRequestFANKit",
dependencies: ["NimbusRequestTarget"]),
.target(
name: "NimbusGAMKit",
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: "NimbusVungleKit",
dependencies: ["NimbusRenderTarget", "NimbusRequestTarget", .Vungle]),
.binaryTarget(
name: "MobileFuseSDK",
url: "https://cdn.mobilefuse.com/sdk/1.7.3.zip",
checksum: "34c23742c30a8e4b3b7ff99db1492bc56756b3cf720249ab52abdb0d2731430c"),
.binaryTarget(
name: "OMSDK_Adsbynimbus",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/external/omsdk/1.4.12/OMSDK_Adsbynimbus-1.4.12.zip",
checksum: "7de37819dcd06a02cb116d3dea9fce9427cd8f09055625abd3b87388b08aecc1"),
.binaryTarget(
name: "DTBiOSSDK",
url: "https://mdtb-sdk-packages.s3-us-west-2.amazonaws.com/iOS_APS_SDK/APS_iOS_SDK-4.7.7.zip",
checksum: "b8881b641854f1a6e4edda9bc5eddf9c23694053cf5b599a815c4784acfeddb2"),
.binaryTarget(
name: "FBAudienceNetwork",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/external/facebook/6.14.0/FBAudienceNetwork.zip",
checksum: "a898de0762605ae0fc56dc8e40652243dd7a18061d858c81f3f0457cddf9adbb"),
.binaryTarget(
name: "UnityAds",
url: "https://github.com/Unity-Technologies/unity-ads-ios/releases/download/4.9.2/UnityAds.zip",
checksum: "20a9a09bbde7759287d6df5a2449985ba8912551416c761a1f2995e281025ccb"),
]
)
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"
)
}
package.targets += [
.binaryTarget(
name: "NimbusCoreKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusCoreKit-2.20.3.zip",
checksum: "538d9aa53b773fe3b4db1bd05a0e4a65c09f92545e9f00612c34b1ccdfeff6a2"),
.binaryTarget(
name: "NimbusKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusKit-2.20.3.zip",
checksum: "e2a491521957bedcb12d990df56b9d9c2092a17de2565b30d2c4e942a15ea107"),
.binaryTarget(
name: "NimbusMobileFuseKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusMobileFuseKit-2.20.3.zip",
checksum: "6a8a9e3e72d61ee0f70fad3f23e380a513d2b7ae9ad938c139c743ddead14b4b"),
.binaryTarget(
name: "NimbusRenderKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusRenderKit-2.20.3.zip",
checksum: "72806436057c68d3f88e3a9e7e9d76eff5ae46d88bc91c8b72c1c2081875776d"),
.binaryTarget(
name: "NimbusRenderStaticKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusRenderStaticKit-2.20.3.zip",
checksum: "5c9c5dc19f056e46fb66c5e85b5184e5034ee313769949b984897d4fbb3bd341"),
.binaryTarget(
name: "NimbusRenderVideoKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusRenderVideoKit-2.20.3.zip",
checksum: "1fde0c3e48369be2f1b811303ca8f723607d3e846dd4f617d3f3c6b21ca49522"),
.binaryTarget(
name: "NimbusRequestKit",
url: "https://adsbynimbus-public.s3.amazonaws.com/iOS/sdks/2.20.3/NimbusRequestKit-2.20.3.zip",
checksum: "345050b1554b10a92bac335be4a5dcb799df13be1e864b627565a8e49b013d2e"),
]