forked from doordash-oss/swiftui-preview-snapshots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
51 lines (46 loc) · 1.33 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
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "swiftui-preview-snapshots",
platforms: [
.iOS(.v13),
.tvOS(.v13),
.macOS(.v10_15),
],
products: [
.library(
name: "PreviewSnapshots",
targets: ["PreviewSnapshots"]
),
.library(
name: "PreviewSnapshotsTesting",
targets: ["PreviewSnapshotsTesting"]
),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.10.0"),
],
targets: [
// PreviewSnapshots target with no dependancies that can be imported into app code
.target(
name: "PreviewSnapshots",
dependencies: []
),
// PreviewSnapshotTesting target the depends on `SnapshotTesting` for use in tests
.target(
name: "PreviewSnapshotsTesting",
dependencies: [
"PreviewSnapshots",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
]
),
// Tests
.testTarget(
name: "PreviewSnapshotsTests",
dependencies: [
"PreviewSnapshots",
"PreviewSnapshotsTesting",
]
),
]
)