-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathPackage@swift-5.7.swift
82 lines (80 loc) · 3.17 KB
/
Package@swift-5.7.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
// 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.12.0/CoreCollector.zip",
checksum: "3df821a1b7883d0f103b052bf56b3fbe613c153111a6781ed51be184685aa04c"
),
.binaryTarget(
name: "AVFoundationCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.12.0/AVFoundationCollector.zip",
checksum: "4e1fb985ac96ae82ca35d78a1472021627e56401e3d8844cb7cbe77f652857ae"
),
.target(
name: "AVFoundationCollectorTarget",
dependencies: [
"CoreCollector",
"AVFoundationCollector",
]
),
.binaryTarget(
name: "BitmovinCollector",
url: "https://cdn.bitmovin.com/analytics/ios_tvos/3.12.0/BitmovinCollector.zip",
checksum: "153e677b609b5601bdf45586de51f8b65e4d57e21dac2d9fc583a956af79664b"
),
.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.12.0/AmazonIVSCollector.zip",
checksum: "42aa65e5c4e5b9c13886565c5f20c044d57cccfe70e6e5536043161742a49372"
),
.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])),
]
),
]
)