-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPackage.swift
45 lines (42 loc) · 1.5 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "UIExtensions",
platforms: [.macOS(.v10_15), .iOS(.v13)],
products: [
.library(name: "UIExtensions", targets: ["UIExtensions"]),
.library(name: "UIExtensionsDynamic", type: .dynamic, targets: ["UIExtensionsDynamic"]),
.library(name: "SnapshotTestingExtensions", targets: ["SnapshotTestingExtensions"]),
],
dependencies: [
.package(url: "https://github.com/teufelaudio/FoundationExtensions.git", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.11.0"),
],
targets: [
.target(
name: "UIExtensions",
dependencies: [
.product(name: "FoundationExtensions", package: "FoundationExtensions"),
]
),
.target(
name: "UIExtensionsDynamic",
dependencies: [
.product(name: "FoundationExtensionsDynamic", package: "FoundationExtensions"),
]
),
.target(
name: "SnapshotTestingExtensions",
dependencies: [
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
"UIExtensions"
]
),
.testTarget(name: "UIExtensionsTests",
dependencies: [
"SnapshotTestingExtensions",
"UIExtensions",
]
),
]
)