-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
175 lines (164 loc) · 8.48 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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "BlueStackSDK",
platforms: [.iOS(.v12)],
products: [
.library(
name: "BlueStackSDK",
targets: ["BlueStackSDKTarget"]),
.library(
name: "BlueStackGMAAdapter",
targets: ["BlueStackGMAAdapterTarget"]),
.library(
name: "BlueStackSASAdapter",
targets: ["BlueStackSASAdapterTarget"]),
.library(
name: "BlueStackSASBiddingAdapter",
targets: ["BlueStackSASBiddingAdapterTarget"]),
.library(
name: "BlueStackFacebookAdapter",
targets: ["BlueStackFacebookAdapterTarget"]),
.library(
name: "BluestackAmazonPublisherServicesAdapter",
targets: ["BluestackAmazonPublisherServicesAdapterTarget"]),
.library(
name: "BlueStackAdColonyAdapter",
targets: ["BlueStackAdColonyAdapterTarget"]),
.library(
name: "BlueStackLocationAdapter",
targets: ["BlueStackLocationAdapterTarget"]),
.library(
name: "BlueStackOguryAdapter",
targets: ["BlueStackOguryAdapterTarget"]),
],
dependencies: [
.package(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads", exact: "11.2.0"),
],
targets: [
.target(name: "BlueStackGMAAdapterTarget",
dependencies: [
.product(name: "GoogleMobileAds", package: "swift-package-manager-google-mobile-ads"),
.target(name: "BlueStackGMAAdapter", condition: .when(platforms: [.iOS])),
],
path: "BlueStackGMAAdapterWrapper",
linkerSettings: [.linkedFramework("JavaScriptCore")]
),
.target(name: "BlueStackSASAdapterTarget",
dependencies: [
.target(name: "BlueStackSASAdapter", condition: .when(platforms: [.iOS])),
.target(name: "SASDisplayKit", condition: .when(platforms: [.iOS])),
.target(name: "SCSCoreKit", condition: .when(platforms: [.iOS])),
],
path: "BlueStackSASAdapterWrapper"
),
.target(name: "BlueStackSASBiddingAdapterTarget",
dependencies: [
.target(name: "BlueStackSASBiddingAdapter", condition: .when(platforms: [.iOS])),
.target(name: "SASDisplayKit", condition: .when(platforms: [.iOS])),
.target(name: "SCSCoreKit", condition: .when(platforms: [.iOS])),
],
path: "BlueStackSASBiddingAdapterWrapper"
),
.target(name: "BlueStackFacebookAdapterTarget",
dependencies: [
.target(name: "BlueStackFacebookAdapter",condition: .when(platforms: [.iOS])),
.target(name: "FBAudienceNetwork",condition: .when(platforms: [.iOS])),
],
path: "BlueStackFacebookAdapterWrapper"
),
.target(name: "BluestackAmazonPublisherServicesAdapterTarget",
dependencies: [
.target(name: "BluestackAmazonPublisherServicesAdapter", condition: .when(platforms: [.iOS])),
.target(name: "DTBiOSSDK", condition: .when(platforms: [.iOS])),
],
path: "BluestackAmazonPublisherServicesAdapterWrapper"
),
.target(name: "BlueStackAdColonyAdapterTarget",
dependencies: [
.target(name: "BlueStackAdColonyAdapter", condition: .when(platforms: [.iOS])),
.target(name: "AdColony", condition: .when(platforms: [.iOS])),
],
path: "BlueStackAdColonyAdapterWrapper"
),
.target(name: "BlueStackLocationAdapterTarget",
dependencies: [
.target(name: "BlueStackLocationAdapter", condition: .when(platforms: [.iOS])),
.target(name: "MAdvertiseLocation", condition: .when(platforms: [.iOS])),
],
path: "BlueStackLocationAdapterWrapper"
),
.target(name: "BlueStackOguryAdapterTarget",
dependencies: [
.target(name: "BlueStackOguryAdapter", condition: .when(platforms: [.iOS])),
.target(name: "OguryCore", condition: .when(platforms: [.iOS])),
.target(name: "OgurySdk", condition: .when(platforms: [.iOS])),
.target(name: "OguryAds", condition: .when(platforms: [.iOS])),
.target(name: "OguryChoiceManager", condition: .when(platforms: [.iOS])),
.target(name: "OMSDK_Ogury", condition: .when(platforms: [.iOS])),
],
path: "BlueStackOguryAdapterWrapper"
),
.target(name: "BlueStackSDKTarget",
dependencies: [
.target(name: "BlueStackSDK", condition: .when(platforms: [.iOS])),
],
path: "BlueStackSDKWrapper",
exclude: ["../BlueStack-SDK.podspec", "../README.md"],
resources: [
.process("Resources/omsdk-v1.js"),
.process("Resources/synccoreBluestack.js"),
.process("Resources/PrivacyInfo.xcprivacy")
],
linkerSettings: [
.linkedFramework("AVFoundation"),
.linkedFramework("Accelerate"),
.linkedFramework("CFNetwork"),
.linkedFramework("CoreGraphics"),
.linkedFramework("CoreMedia"),
.linkedFramework("CoreTelephony"),
.linkedFramework("CoreVideo"),
.linkedFramework("MediaPlayer"),
.linkedFramework("MessageUI"),
.linkedFramework("MobileCoreServices"),
.linkedFramework("QuartzCore"),
.linkedFramework("Security"),
.linkedFramework("StoreKit"),
.linkedFramework("SystemConfiguration"),
.linkedLibrary("ObjC"),
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedLibrary("sqlite3")
]
),
//core
.binaryTarget(name: "BlueStackSDK", path: "BlueStackSDK.xcframework"),
//smart
.binaryTarget(name: "BlueStackSASAdapter", path: "BlueStackSASAdapter.xcframework"),
.binaryTarget(name: "BlueStackSASBiddingAdapter", path: "BlueStackSASBiddingAdapter.xcframework"),
.binaryTarget(name: "SASDisplayKit", path: "Dependencies/SASDisplayKit.xcframework"),
.binaryTarget(name: "SCSCoreKit", path: "Dependencies/SCSCoreKit.xcframework"),
//adcolony
.binaryTarget(name: "BlueStackAdColonyAdapter", path: "BlueStackAdColonyAdapter.xcframework"),
.binaryTarget(name: "AdColony", path: "Dependencies/AdColony.xcframework"),
//GMA
.binaryTarget(name: "BlueStackGMAAdapter", path: "BlueStackGMAAdapter.xcframework"),
//fb
.binaryTarget(name: "BlueStackFacebookAdapter", path: "BlueStackFacebookAdapter.xcframework"),
.binaryTarget(name: "FBAudienceNetwork", path: "Dependencies/FBAudienceNetwork.xcframework"),
//location
.binaryTarget(name: "BlueStackLocationAdapter", path: "BlueStackLocationAdapter.xcframework"),
.binaryTarget(name: "MAdvertiseLocation", path: "Dependencies/MAdvertiseLocation.xcframework"),
//ogury
.binaryTarget(name: "BlueStackOguryAdapter", path: "BlueStackOguryAdapter.xcframework"),
.binaryTarget(name: "OguryCore", path: "Dependencies/OguryCore.xcframework"),
.binaryTarget(name: "OgurySdk", path: "Dependencies/OgurySdk.xcframework"),
.binaryTarget(name: "OguryAds", path: "Dependencies/OguryAds.xcframework"),
.binaryTarget(name: "OguryChoiceManager", path: "Dependencies/OguryChoiceManager.xcframework"),
.binaryTarget(name: "OMSDK_Ogury", path: "Dependencies/OMSDK_Ogury.xcframework"),
//amazon
.binaryTarget(name: "BluestackAmazonPublisherServicesAdapter", path: "BluestackAmazonPublisherServicesAdapter.xcframework"),
.binaryTarget(name: "DTBiOSSDK", path: "Dependencies/DTBiOSSDK.xcframework")
]
)