-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathPackage.swift
83 lines (81 loc) · 3.19 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
// swift-tools-version:5.9
// 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),
.visionOS(.v1),
],
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.11.1/CoreCollector.zip",
checksum: "5b32d0c60c45a438f03172e0be9496b8872d9df5c4dd71cb289381d9acf63c4f"
),
.binaryTarget(
name: "AVFoundationCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.11.1/AVFoundationCollector.zip",
checksum: "c5cfb23afcdaefdf4e313894f14416d7234a59be343ae73d3b7d4fe5ec455103"
),
.target(
name: "AVFoundationCollectorTarget",
dependencies: [
"CoreCollector",
"AVFoundationCollector",
]
),
.binaryTarget(
name: "BitmovinCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.11.1/BitmovinCollector.zip",
checksum: "e4ab9de0eaff08c0b172561379deb59c9b9e9e7b23faad1584d5305f5442108e"
),
.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.11.1/AmazonIVSCollector.zip",
checksum: "d2a6f92fed597746a07a84e9f03046a57816ccef276bb290af28d998e820e888"
),
.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])),
]
),
]
)