-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPackage.swift
78 lines (76 loc) · 2.79 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
// swift-tools-version: 6.0
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "PocketBase",
platforms: [
.macOS(.v14),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
.macCatalyst(.v17),
.visionOS(.v1),
],
products: [
.library(name: "PocketBase", targets: ["PocketBase"]),
.library(name: "PocketBaseUI", targets: ["PocketBaseUI"]),
// MARK: WIP
// .library(name: "DataBase", targets: ["DataBase"]),
],
dependencies: [
// .package(path: "../EventSource" url: "https://github.com/briannadoubt/EventSource.git", .upToNextMinor(from: "0.1.0")),
.package(url: "https://github.com/apple/swift-http-types.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", .upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/apple/swift-syntax", "509.0.0"..<"601.0.0-prerelease"),
.package(url: "https://github.com/apple/swift-async-algorithms.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.1.2")),
],
targets: [
.target(
name: "DataBase",
dependencies: ["PocketBase"]
),
.target(
name: "PocketBase",
dependencies: [
"PocketBaseMacros",
// .product(name: "EventSource", package: "EventSource"),
.product(name: "KeychainAccess", package: "KeychainAccess"),
.product(name: "HTTPTypes", package: "swift-http-types"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Collections", package: "swift-collections")
]
),
.macro(
name: "PocketBaseMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
.target(
name: "PocketBaseUI",
dependencies: ["PocketBase"]
),
.target(
name: "TestUtilities",
dependencies: ["PocketBase"]
),
.testTarget(
name: "PocketBaseIntegrationTests",
dependencies: ["PocketBase", "TestUtilities"]
),
.testTarget(
name: "PocketBaseMacrosTests",
dependencies: [
"PocketBase",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
]
),
.testTarget(
name: "PocketBaseTests",
dependencies: ["PocketBase", "TestUtilities"]
),
],
swiftLanguageModes: [.v6]
)