-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathPackage.swift
More file actions
65 lines (63 loc) · 2.27 KB
/
Package.swift
File metadata and controls
65 lines (63 loc) · 2.27 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
// swift-tools-version:6.1
import PackageDescription
let package = Package(
name: "DTCoreText",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
],
products: [
.library(
name: "DTCoreText",
targets: ["DTCoreText"])
],
dependencies: [
.package(url: "https://github.com/Cocoanetics/SwiftText.git", branch: "main", traits: ["HTML"]),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
],
targets: [
.target(
name: "DTCoreText",
dependencies: [
.product(name: "SwiftTextHTML", package: "SwiftText"),
],
path: "Sources/DTCoreText",
resources: [
.copy("default.css")
]
),
.testTarget(
name: "DTCoreTextTests",
dependencies: ["DTCoreText"],
path: "Tests/DTCoreTextTests",
resources: [
.copy("Resources/AppleConverted.html"),
.copy("Resources/CSSCascading.html"),
.copy("Resources/CSSCascading.plist"),
.copy("Resources/CSSOOMCrash.html"),
.copy("Resources/CSSOOMCrash.plist"),
.copy("Resources/CustomFont.plist"),
.copy("Resources/Emoji.html"),
.copy("Resources/Empty_and_Unclosed_Paragraphs.html"),
.copy("Resources/EmptyLinesAndFontAttribute.html"),
.copy("Resources/KeepMeTogether.html"),
.copy("Resources/ListItemBulletColorAndFont.html"),
.copy("Resources/ListTest.plist"),
.copy("Resources/MalformedURL.html"),
.copy("Resources/NavTag.html"),
.copy("Resources/NavTag.plist"),
.copy("Resources/PreWhitespace.html"),
.copy("Resources/PreWhitespace.plist"),
.copy("Resources/RetinaDataURL.html"),
.copy("Resources/RTL.html"),
.copy("Resources/SpaceBetweenUnderlines.html"),
.copy("Resources/Video.plist"),
.copy("Resources/WarAndPeace.plist"),
.copy("Resources/WhitespaceFollowingImagePromotedToParagraph.html"),
.copy("Resources/Oliver.jpg"),
.copy("Resources/Oliver@2x.jpg"),
]
),
]
)