forked from muxinc/mux-stats-google-ima
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
58 lines (57 loc) · 1.84 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Mux_Stats_Google_IMA",
platforms: [
.tvOS(.v12)
],
products: [
.library(
name: "Mux_Stats_Google_IMA",
targets: [
"Mux_Stats_Google_IMA",
//"GoogleInteractiveMediaAds",
"GoogleInteractiveMediaAds_tvOS"
]
),
],
dependencies: [
.package(
name: "MUXSDKStats",
url: "https://github.com/muxinc/mux-stats-sdk-avplayer.git",
from: "3.2.1"
),
.package(
url: "https://github.com/muxinc/stats-sdk-objc.git",
from: "4.7.1"
)
],
targets: [
.target(
name: "Mux_Stats_Google_IMA",
dependencies: [
"MUXSDKStats",
.product(name: "MuxCore", package: "stats-sdk-objc"),
// .targetItem(
// name: "GoogleInteractiveMediaAds",
// condition: .when(platforms: [.iOS])
// ),
.targetItem(
name: "GoogleInteractiveMediaAds_tvOS",
condition: .when(platforms: [.tvOS])
)
],
path: "MUXSDKImaListener/Classes"
),
// .binaryTarget(
// name: "GoogleInteractiveMediaAds",
// url: "https://imasdk.googleapis.com/native/downloads/ima-ios-v3.16.3.zip",
// checksum: "049bac92551b50247ea14dcbfde9aeb99ac2bea578a74f67c6f3e781d9aca101"
// ),
.binaryTarget(
name: "GoogleInteractiveMediaAds_tvOS",
url: "https://imasdk.googleapis.com/native/downloads/ima-tvos-v4.9.2.zip",
checksum: "c0c2c44a533bf36aafb871402612d0c067457e44bc7a24af62ccc38e285e7e98"
)
]
)