2025-11-10 20:45:05 -08:00
|
|
|
// swift-tools-version:6.2
|
2020-07-30 04:54:21 -05:00
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
|
|
let package = Package(
|
2025-04-22 21:50:13 -07:00
|
|
|
name: "SyncDatabase",
|
2026-10-21 19:05:11 -07:00
|
|
|
platforms: [.macOS(.v15), .iOS(.v18)],
|
2025-04-22 21:50:13 -07:00
|
|
|
products: [
|
|
|
|
|
.library(
|
|
|
|
|
name: "SyncDatabase",
|
2020-12-21 10:55:00 -06:00
|
|
|
type: .dynamic,
|
2025-12-31 12:07:04 -08:00
|
|
|
targets: ["SyncDatabase"])
|
2025-04-22 21:50:13 -07:00
|
|
|
],
|
|
|
|
|
dependencies: [
|
|
|
|
|
.package(path: "../Articles"),
|
|
|
|
|
.package(path: "../RSCore"),
|
2025-12-31 12:07:04 -08:00
|
|
|
.package(path: "../RSDatabase")
|
2025-04-22 21:50:13 -07:00
|
|
|
],
|
|
|
|
|
targets: [
|
|
|
|
|
.target(
|
|
|
|
|
name: "SyncDatabase",
|
|
|
|
|
dependencies: [
|
2021-05-23 21:20:33 +08:00
|
|
|
"RSCore",
|
2020-07-30 20:43:18 -05:00
|
|
|
"RSDatabase",
|
2025-12-31 12:07:04 -08:00
|
|
|
"Articles"
|
2025-11-10 20:45:05 -08:00
|
|
|
],
|
|
|
|
|
swiftSettings: [
|
|
|
|
|
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
|
|
|
|
.enableUpcomingFeature("InferIsolatedConformances"),
|
|
|
|
|
.unsafeFlags(["-warnings-as-errors"])
|
|
|
|
|
]
|
2026-08-30 20:26:55 -07:00
|
|
|
),
|
|
|
|
|
.testTarget(
|
|
|
|
|
name: "SyncDatabaseTests",
|
|
|
|
|
dependencies: [
|
|
|
|
|
"SyncDatabase"
|
|
|
|
|
],
|
|
|
|
|
swiftSettings: [
|
|
|
|
|
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
|
|
|
|
.enableUpcomingFeature("InferIsolatedConformances")
|
|
|
|
|
]
|
2025-12-31 12:07:04 -08:00
|
|
|
)
|
2025-04-22 21:50:13 -07:00
|
|
|
]
|
2020-07-30 04:54:21 -05:00
|
|
|
)
|