-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
53 lines (51 loc) · 1.82 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
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Relay.swift",
platforms: [
.macOS("11.0"),
.macCatalyst("14.0"),
.iOS("14.0"),
.tvOS("14.0"),
.watchOS("7.0"),
],
products: [
.library(
name: "Relay",
targets: ["Relay"]),
.library(
name: "RelaySwiftUI",
targets: ["RelaySwiftUI"]),
],
dependencies: [
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", .branch("release/5.5")),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.8.0"),
.package(name: "Nimble", url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "9.0.0")),
],
targets: [
.target(
name: "Relay",
dependencies: [],
exclude: ["BUILD.bazel"]),
.testTarget(
name: "RelayTests",
dependencies: ["Relay", "RelayTestHelpers", "SnapshotTesting", "Nimble"],
exclude: ["__Snapshots__"]),
.target(
name: "RelaySwiftUI",
dependencies: ["Relay"],
exclude: ["BUILD.bazel"]),
.testTarget(
name: "RelaySwiftUITests",
dependencies: ["RelaySwiftUI", "RelayTestHelpers", "SnapshotTesting", "Nimble"],
exclude: ["__Snapshots__"]),
.target(
name: "RelayTestHelpers",
dependencies: ["Relay", "RelaySwiftUI", "SnapshotTesting"],
exclude: ["StarWars/schema.graphql", "ToDo/schema.graphql"]),
.executableTarget(
name: "find-graphql-tags",
dependencies: ["SwiftSyntax"]),
]
)