forked from pointfreeco/swift-snapshot-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
33 lines (31 loc) · 694 Bytes
/
Package.swift
File metadata and controls
33 lines (31 loc) · 694 Bytes
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
// swift-tools-version:5.0
import Foundation
import PackageDescription
let package = Package(
name: "SnapshotTesting",
platforms: [
.iOS(.v11),
.macOS(.v10_10),
.tvOS(.v10)
],
products: [
.library(
name: "SnapshotTesting",
targets: ["SnapshotTesting"]),
],
targets: [
.target(
name: "SnapshotTesting",
dependencies: []),
.testTarget(
name: "SnapshotTestingTests",
dependencies: ["SnapshotTesting"]),
]
)
if ProcessInfo.processInfo.environment.keys.contains("PF_DEVELOP") {
package.dependencies.append(
contentsOf: [
.package(url: "https://github.com/yonaskolb/XcodeGen.git", .exact("2.15.1")),
]
)
}