-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPackage.swift
59 lines (57 loc) · 1.89 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "MediaToolSwift",
platforms: [
.macOS(.v11), .iOS(.v13), .tvOS(.v13), .macCatalyst(.v13), .visionOS(.v1)
],
products: [
.library(name: "MediaToolSwift", targets: ["MediaToolSwift"])
],
dependencies: [
// To build documentation for Github Pages use:
// swift package --allow-writing-to-directory ./docs generate-documentation --exclude-extended-types --target MediaToolSwift --disable-indexing --transform-for-static-hosting --hosting-base-path MediaToolSwift --output-path ./docs
// To preview documentation: swift package --disable-sandbox preview-documentation
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
],
targets: [
.target(
name: "MediaToolSwift",
dependencies: [
"ObjCExceptionCatcher"
],
path: "Sources",
exclude: [
"Classes/ObjCExceptionCatcher"
],
resources: [.copy("PrivacyInfo.xcprivacy")]
// swiftSettings: [
// .unsafeFlags(["-DADVANCED", "-DIMAGEPLUS"])
// ]
),
.target(
name: "ObjCExceptionCatcher",
path: "Sources/Classes/ObjCExceptionCatcher",
exclude: [],
sources: [
"ObjCExceptionCatcher.h",
"ObjCExceptionCatcher.m"
],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath(".")
],
linkerSettings: [
.linkedLibrary("objc")
]
),
.testTarget(
name: "MediaToolSwiftTests",
dependencies: ["MediaToolSwift"],
path: "Tests",
exclude: [
"media"
]
)
]
)