-
Notifications
You must be signed in to change notification settings - Fork 102
/
Package.swift
58 lines (56 loc) · 2.12 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
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
// swiftlint:disable:next prefixed_toplevel_constant
let package = Package(
name: "Nimble-Snapshots",
platforms: [.iOS(.v13), .tvOS(.v13)],
products: [
.library(
name: "Nimble-Snapshots",
targets: ["NimbleSnapshotsObjc"])
],
dependencies: [
.package(url: "https://github.com/uber/ios-snapshot-test-case.git",
.upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/Quick/Nimble.git",
.upToNextMajor(from: "13.0.0"))
],
targets: [
.target(
name: "Nimble-Snapshots",
dependencies: [
.product(name:"iOSSnapshotTestCase", package: "ios-snapshot-test-case"),
.product(name: "Nimble", package: "Nimble")
],
path: "Nimble_Snapshots",
exclude: ["XCTestObservationCenter+CurrentTestCaseTracker.h",
"XCTestObservationCenter+CurrentTestCaseTracker.m",
"Info.plist",
"Nimble_Snapshots.xcconfig"],
sources: ["CurrentTestCaseTracker.swift",
"HaveValidSnapshot.swift",
"PrettySyntax.swift",
"DynamicSize",
"DynamicType"]
),
.target(
name: "NimbleSnapshotsObjc",
dependencies: [
"Nimble-Snapshots"
],
path: "Nimble_Snapshots",
exclude: ["CurrentTestCaseTracker.swift",
"HaveValidSnapshot.swift",
"PrettySyntax.swift",
"DynamicSize",
"DynamicType",
"Info.plist",
"Nimble_Snapshots.xcconfig"],
sources: ["XCTestObservationCenter+CurrentTestCaseTracker.h",
"XCTestObservationCenter+CurrentTestCaseTracker.m"],
publicHeadersPath: "."
)
],
swiftLanguageVersions: [.v5]
)