-
Notifications
You must be signed in to change notification settings - Fork 12
82 lines (80 loc) · 3.18 KB
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
// 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: "BitmovinAnalytics",
platforms: [
.iOS(.v14),
.tvOS(.v14),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "BitmovinCollector",
targets: ["BitmovinCollectorTarget"]
),
.library(
name: "AVFoundationCollector",
targets: ["AVFoundationCollectorTarget"]
),
.library(
name: "AmazonIVSCollector",
targets: ["AmazonIVSCollectorTarget"]
)
],
dependencies: [
.package(url: "https://github.com/bitmovin/player-ios-core.git", from: "3.51.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.binaryTarget(
name: "CoreCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.1-a.1/CoreCollector.zip",
checksum: "b63e72c3e7482c3c39efa19a467ba9e64de684f0031c961ce01176635d5d998b"
),
.binaryTarget(
name: "AVFoundationCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.1-a.1/AVFoundationCollector.zip",
checksum: "528adeefe05ffc7af53e30fa2aea03b24255a93cf677c43961532ab632b4a273"
),
.target(
name: "AVFoundationCollectorTarget",
dependencies: [
"CoreCollector",
"AVFoundationCollector",
]
),
.binaryTarget(
name: "BitmovinCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.1-a.1/BitmovinCollector.zip",
checksum: "0c68d7bc7734efbede5e04f59ba5cb2a2190433bad7ae02c60a3d02edc975e13"
),
.target(
name: "BitmovinCollectorTarget",
dependencies: [
"CoreCollector",
"BitmovinCollector",
.product(name: "BitmovinPlayerCore", package: "player-ios-core"),
]
),
.binaryTarget(
name: "AmazonIVSPlayer",
url: "https://player.live-video.net/1.24.0/AmazonIVSPlayer.xcframework.zip",
checksum: "33a165cde872f0b7af6a44a33bbda91b3e15e095a7e05c392f0b30adbd8f2350"
),
.binaryTarget(
name: "AmazonIVSCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.1-a.1/AmazonIVSCollector.zip",
checksum: "111c57348fdf8452a033254cc5a38ce1a2abb4af8393c1086bb2a5db7dac9658"
),
.target(
name: "AmazonIVSCollectorTarget",
dependencies: [
.target(name: "AmazonIVSCollector", condition: .when(platforms: [.iOS])),
.target(name: "AmazonIVSPlayer", condition: .when(platforms: [.iOS])),
.target(name: "CoreCollector", condition: .when(platforms: [.iOS])),
]
),
]
)