-
Notifications
You must be signed in to change notification settings - Fork 28
/
Package.swift
54 lines (51 loc) · 1.81 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
// 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: "MarkupEditor",
platforms: [
.macCatalyst(.v15),
.iOS(.v15)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "MarkupEditor",
targets: ["MarkupEditor"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Resources include the html, css, and js files that are loaded when a MarkupWKWebView is instantiated
.target(
name: "MarkupEditor",
dependencies: [],
path: "MarkupEditor",
resources: [.process("Resources")]),
.target(
name: "SharedTest",
dependencies: ["MarkupEditor"],
path: "MarkupEditorTests/Shared"),
.testTarget(
name: "BasicTests",
dependencies: ["MarkupEditor", "SharedTest"],
path: "MarkupEditorTests/BasicTests"),
.testTarget(
name: "UndoTests",
dependencies: ["MarkupEditor", "SharedTest"],
path: "MarkupEditorTests/UndoTests"),
.testTarget(
name: "RedoTests",
dependencies: ["MarkupEditor", "SharedTest"],
path: "MarkupEditorTests/RedoTests"),
]
)
/** Seems to cause problems, but will leave here in case it can be enabled
for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(.enableExperimentalFeature("StrictConcurrency"))
target.swiftSettings = settings
}
*/