forked from krzyzanowskim/STTextView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
89 lines (87 loc) · 2.99 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "STTextView",
platforms: [.macOS(.v12), .iOS(.v16), .macCatalyst(.v16)],
products: [
.library(
name: "STTextView",
targets: ["STTextView", "STTextViewSwiftUI"]
)
],
dependencies: [
.package(url: "https://github.com/krzyzanowskim/STTextKitPlus", from: "0.1.3"),
.package(url: "https://github.com/krzyzanowskim/CoreTextSwift", from: "0.2.0")
],
targets: [
.target(
name: "STTextView",
dependencies: [
.target(name: "STTextViewAppKit", condition: .when(platforms: [.macOS])),
.target(name: "STTextViewUIKit", condition: .when(platforms: [.iOS, .macCatalyst]))
]
),
.target(
name: "STTextViewCommon",
dependencies: [
.product(name: "STTextKitPlus", package: "STTextKitPlus")
]
),
.target(
name: "STTextViewAppKit",
dependencies: [
.target(name: "STTextViewCommon"),
.target(name: "STObjCLandShim", condition: .when(platforms: [.macOS])),
.product(name: "STTextKitPlus", package: "STTextKitPlus"),
.product(name: "CoreTextSwift", package: "CoreTextSwift")
]
),
.target(
name: "STTextViewUIKit",
dependencies: [
.target(name: "STTextViewCommon"),
.target(name: "STObjCLandShim", condition: .when(platforms: [.iOS, .macCatalyst])),
.product(name: "STTextKitPlus", package: "STTextKitPlus"),
.product(name: "CoreTextSwift", package: "CoreTextSwift")
],
swiftSettings: [
// .define("USE_LAYERS_FOR_GLYPHS")
]
),
.target(
name: "STTextViewSwiftUI",
dependencies: [
.target(name: "STTextViewSwiftUIAppKit", condition: .when(platforms: [.macOS])),
.target(name: "STTextViewSwiftUIUIKit", condition: .when(platforms: [.iOS, .macCatalyst]))
]
),
.target(
name: "STTextViewSwiftUIAppKit",
dependencies: [
.target(name: "STTextView")
]
),
.target(
name: "STTextViewSwiftUIUIKit",
dependencies: [
.target(name: "STTextView")
]
),
.target(
name: "STObjCLandShim",
publicHeadersPath: "include"
),
.testTarget(
name: "STTextViewAppKitTests",
dependencies: [
.target(name: "STTextViewAppKit", condition: .when(platforms: [.macOS]))
]
),
.testTarget(
name: "STTextViewUIKitTests",
dependencies: [
.target(name: "STTextViewUIKit", condition: .when(platforms: [.iOS, .macCatalyst]))
]
)
]
)