-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
75 lines (71 loc) · 2.77 KB
/
Package.swift
File metadata and controls
75 lines (71 loc) · 2.77 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "swift-records",
platforms: [
.macOS(.v14)
],
products: [
.library(
name: "Records",
targets: ["Records"]
),
.library(
name: "RecordsTestSupport",
targets: ["RecordsTestSupport"]
)
],
dependencies: [
.package(
url: "https://github.com/coenttb/swift-structured-queries-postgres",
from: "0.2.0",
traits: ["StructuredQueriesPostgresTagged"]
),
.package(url: "https://github.com/vapor/postgres-nio", from: "1.21.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.10.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.6"),
.package(url: "https://github.com/coenttb/swift-environment-variables", from: "0.0.1"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"),
],
targets: [
.target(
name: "Records",
dependencies: [
.product(name: "StructuredQueriesPostgres", package: "swift-structured-queries-postgres"),
.product(name: "PostgresNIO", package: "postgres-nio"),
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "EnvironmentVariables", package: "swift-environment-variables"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay")
],
swiftSettings: [
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.target(
name: "RecordsTestSupport",
dependencies: [
"Records",
.product(name: "StructuredQueriesPostgres", package: "swift-structured-queries-postgres"),
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "DependenciesTestSupport", package: "swift-dependencies"),
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
.product(name: "StructuredQueriesPostgresTestSupport", package: "swift-structured-queries-postgres"),
]
),
.testTarget(
name: "RecordsTests",
dependencies: [
"Records",
"RecordsTestSupport",
.product(name: "DependenciesTestSupport", package: "swift-dependencies")
]
)
],
swiftLanguageModes: [.v6]
)
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("MemberImportVisibility")
]
for index in package.targets.indices {
package.targets[index].swiftSettings = swiftSettings
}