-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Package.swift
65 lines (63 loc) · 2.37 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
54
55
56
57
58
59
60
61
62
63
64
65
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "DTCoreText",
platforms: [
.iOS(.v9), //.v8 - .v13
.macOS(.v10_10), //.v10_10 - .v10_15
.tvOS(.v9), //.v9 - .v13
],
products: [
.library(
name: "DTCoreText",
// type: .dynamic,
targets: ["DTCoreText"])
],
dependencies: [
.package(url: "https://github.com/Cocoanetics/DTFoundation.git", from: "1.7.15"),
],
targets: [
.target(
name: "DTCoreText",
dependencies: [
.product(name: "DTFoundation", package: "DTFoundation"),
],
path: "Core",
exclude: ["DTCoreText-Info.plist", "DTCoreText-Prefix.pch"],
resources: [
.copy("Source/default.css")]
),
.testTarget(
name: "DTCoreTextTests",
dependencies: ["DTCoreText"],
path: "Test/Source",
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/[email protected]"),
]
)
]
)