forked from gonzalezreal/textual
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
53 lines (51 loc) · 1.53 KB
/
Package.swift
File metadata and controls
53 lines (51 loc) · 1.53 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "textual",
platforms: [
.macOS(.v15),
.iOS(.v18),
.tvOS(.v18),
.watchOS(.v11),
.visionOS(.v2),
],
products: [
.library(name: "Textual", targets: ["Textual"])
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.3.1"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.7"),
.package(url: "https://github.com/gonzalezreal/swiftui-math", from: "0.1.0"),
],
targets: [
.target(
name: "Textual",
dependencies: [
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
.product(name: "SwiftUIMath", package: "swiftui-math"),
],
resources: [
.process("Internal/Highlighter/Prism")
],
swiftSettings: [
.define("TEXTUAL_ENABLE_LINKS", .when(platforms: [.macOS, .iOS, .watchOS, .visionOS])),
.define("TEXTUAL_ENABLE_TEXT_SELECTION", .when(platforms: [.macOS, .iOS, .visionOS])),
]
),
.testTarget(
name: "TextualTests",
dependencies: [
"Textual",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
exclude: [
"Internal/TextInteraction/__Snapshots__",
"StructuredText/__Snapshots__",
],
resources: [.copy("Fixtures")],
swiftSettings: [
.define("TEXTUAL_ENABLE_TEXT_SELECTION", .when(platforms: [.macOS, .iOS, .visionOS]))
]
),
]
)