-
Notifications
You must be signed in to change notification settings - Fork 11
/
Package.swift
81 lines (78 loc) · 2.58 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
// swift-tools-version:5.3
import PackageDescription
let teadsModuleName = "TeadsSDK"
let teadsAdMobAdapterModuleName = "TeadsAdMobAdapter"
let teadsAppLovinAdapterModuleName = "TeadsAppLovinAdapter"
let teadsSASAdapterModuleName = "TeadsSASAdapter"
let mediationAdaptersDirectory = "MediationAdapters"
let googleMobileAdsModuleName = "GoogleMobileAds"
let appLovinMaxModuleName = "AppLovinSDK"
let omModuleName = "OMSDK_Teadstv"
let commonModuleName = "TeadsAdapterCommon"
let commonModuleNamePath = "Common"
let package = Package(
name: "Teads",
platforms: [
.iOS(.v10),
],
products: [
.library(
name: teadsModuleName,
targets: [teadsModuleName, omModuleName]
),
.library(
name: teadsAdMobAdapterModuleName,
targets: [teadsAdMobAdapterModuleName]
),
.library(
name: teadsAppLovinAdapterModuleName,
targets: [teadsAppLovinAdapterModuleName]
),
],
dependencies: [
.package(
name: googleMobileAdsModuleName,
url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
"11.2.0" ..< "12.0.0"
),
.package(
name: appLovinMaxModuleName,
url: "https://github.com/AppLovin/AppLovin-MAX-Swift-Package.git",
"12.3.1" ..< "13.0.0"
),
],
targets: [
.binaryTarget(
name: teadsModuleName,
path: "Frameworks/\(teadsModuleName).xcframework"
),
.binaryTarget(
name: omModuleName,
path: "Frameworks/\(omModuleName).xcframework"
),
.target(
name: commonModuleName,
dependencies: [
.target(name: teadsModuleName),
.target(name: omModuleName),
],
path: "\(mediationAdaptersDirectory)/\(commonModuleNamePath)"
),
.target(
name: teadsAdMobAdapterModuleName,
dependencies: [
.product(name: googleMobileAdsModuleName, package: googleMobileAdsModuleName),
.target(name: commonModuleName),
],
path: "\(mediationAdaptersDirectory)/\(teadsAdMobAdapterModuleName)"
),
.target(
name: teadsAppLovinAdapterModuleName,
dependencies: [
.product(name: appLovinMaxModuleName, package: appLovinMaxModuleName),
.target(name: commonModuleName),
],
path: "\(mediationAdaptersDirectory)/\(teadsAppLovinAdapterModuleName)"
),
]
)