-
Notifications
You must be signed in to change notification settings - Fork 12
82 lines (80 loc) · 3.17 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.8
// 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.0/CoreCollector.zip",
checksum: "2537fcd338708d425a78d1289f9d0459bf7cf23f7b0e28c1b96b78cd9203ec20"
),
.binaryTarget(
name: "AVFoundationCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.0/AVFoundationCollector.zip",
checksum: "c8a1721eddcffc1e6ad2f9b30478a175ec41d57410dee05bdfe4e05c0969cc5f"
),
.target(
name: "AVFoundationCollectorTarget",
dependencies: [
"CoreCollector",
"AVFoundationCollector",
]
),
.binaryTarget(
name: "BitmovinCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.9.0/BitmovinCollector.zip",
checksum: "cd82f7be064130759cdb68a14ab8b0f543766e79125ec96ce11d3b342669cbcb"
),
.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.0/AmazonIVSCollector.zip",
checksum: "be8682c646bd1420ab9389f09a5b6086dd8b7ce61dcff7d43bdc37070376f4d5"
),
.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])),
]
),
]
)