mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Regularize SyncDatabase Package.swift. Fix #4604.
This commit is contained in:
@@ -1,38 +1,27 @@
|
||||
// swift-tools-version:5.10
|
||||
import PackageDescription
|
||||
|
||||
var dependencies: [Package.Dependency] = [
|
||||
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
||||
]
|
||||
|
||||
#if swift(>=5.6)
|
||||
dependencies.append(contentsOf: [
|
||||
.package(path: "../Articles"),
|
||||
.package(path: "../RSCore"),
|
||||
])
|
||||
#else
|
||||
dependencies.append(contentsOf: [
|
||||
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
||||
])
|
||||
#endif
|
||||
|
||||
let package = Package(
|
||||
name: "SyncDatabase",
|
||||
name: "SyncDatabase",
|
||||
platforms: [.macOS(.v13), .iOS(.v17)],
|
||||
products: [
|
||||
.library(
|
||||
name: "SyncDatabase",
|
||||
products: [
|
||||
.library(
|
||||
name: "SyncDatabase",
|
||||
type: .dynamic,
|
||||
targets: ["SyncDatabase"]),
|
||||
],
|
||||
dependencies: dependencies,
|
||||
targets: [
|
||||
.target(
|
||||
name: "SyncDatabase",
|
||||
dependencies: [
|
||||
targets: ["SyncDatabase"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(path: "../Articles"),
|
||||
.package(path: "../RSCore"),
|
||||
.package(path: "../RSDatabase"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "SyncDatabase",
|
||||
dependencies: [
|
||||
"RSCore",
|
||||
"RSDatabase",
|
||||
"Articles",
|
||||
]),
|
||||
]
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user