-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.45 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
// swift-tools-version: 5.9
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "typed-notifications",
platforms: [.iOS(.v13), .macOS(.v10_15), .watchOS(.v6), .tvOS(.v13)],
products: [
.library(name: "TypedNotifications", targets: ["TypedNotifications"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/mtj0928/userinfo-representable", from: "1.0.2")
],
targets: [
.target(
name: "TypedNotifications",
dependencies: [
.product(name: "UserInfoRepresentable", package: "userinfo-representable"),
"TypedNotificationsMacro"
]
),
.macro(
name: "TypedNotificationsMacro",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
.testTarget(name: "TypedNotificationsTests", dependencies: ["TypedNotifications"]),
.testTarget(
name: "TypedNotificationsMacroTests",
dependencies: [
"TypedNotificationsMacro",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
]
)
]
)