-
Notifications
You must be signed in to change notification settings - Fork 7
/
Package.swift
54 lines (51 loc) · 1.8 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
// swift-tools-version:5.3
import PackageDescription
struct ProjectSettings {
static let marketingVersion = "9.3.2"
}
let package = Package(
name: "SRGLetterbox",
defaultLocalization: "en",
platforms: [
.iOS(.v12),
.tvOS(.v12)
],
products: [
.library(
name: "SRGLetterbox",
targets: ["SRGLetterbox"]
)
],
dependencies: [
.package(name: "FXReachability", url: "https://github.com/SRGSSR/FXReachability.git", .exact("1.3.2-srg6")),
.package(name: "OHHTTPStubs", url: "https://github.com/AliSoftware/OHHTTPStubs.git", .upToNextMajor(from: "9.0.0")),
.package(name: "SRGAnalytics", url: "https://github.com/SRGSSR/srganalytics-apple.git", .upToNextMinor(from: "9.1.0")),
.package(name: "SRGAppearance", url: "https://github.com/SRGSSR/srgappearance-apple.git", .upToNextMinor(from: "5.2.0")),
.package(name: "YYWebImage", url: "https://github.com/SRGSSR/YYWebImage.git", .exact("1.0.5-srg3"))
],
targets: [
.target(
name: "SRGLetterbox",
dependencies: [
"FXReachability",
.product(name: "SRGAnalyticsDataProvider", package: "SRGAnalytics"),
"SRGAppearance",
"YYWebImage"
],
resources: [
.process("Resources")
],
cSettings: [
.define("MARKETING_VERSION", to: "\"\(ProjectSettings.marketingVersion)\""),
.define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release))
]
),
.testTarget(
name: "SRGLetterboxTests",
dependencies: ["SRGLetterbox", "OHHTTPStubs"],
cSettings: [
.headerSearchPath("Private")
]
)
]
)