2024-03-10 16:39:38 -07:00
|
|
|
// swift-tools-version: 5.10
|
2020-07-30 04:54:21 -05:00
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
2022-06-19 11:57:10 +08:00
|
|
|
var dependencies: [Package.Dependency] = [
|
2022-11-01 20:24:58 -05:00
|
|
|
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMinor(from: "1.0.0")),
|
2022-06-19 11:57:10 +08:00
|
|
|
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
|
|
|
]
|
|
|
|
|
|
|
|
#if swift(>=5.6)
|
|
|
|
dependencies.append(contentsOf: [
|
2024-03-10 16:39:38 -07:00
|
|
|
.package(path: "../Articles"),
|
|
|
|
.package(path: "../Database"),
|
2022-06-19 11:57:10 +08:00
|
|
|
])
|
|
|
|
#else
|
|
|
|
dependencies.append(contentsOf: [
|
|
|
|
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
|
|
|
])
|
|
|
|
#endif
|
|
|
|
|
2020-07-30 04:54:21 -05:00
|
|
|
let package = Package(
|
|
|
|
name: "ArticlesDatabase",
|
2024-03-10 16:39:38 -07:00
|
|
|
platforms: [.macOS(.v14), .iOS(.v17)],
|
2020-07-30 04:54:21 -05:00
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "ArticlesDatabase",
|
|
|
|
targets: ["ArticlesDatabase"]),
|
|
|
|
],
|
2022-06-19 11:57:10 +08:00
|
|
|
dependencies: dependencies,
|
2020-07-30 04:54:21 -05:00
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "ArticlesDatabase",
|
2020-07-30 07:27:14 -05:00
|
|
|
dependencies: [
|
2020-07-30 20:43:18 -05:00
|
|
|
"RSCore",
|
2024-03-10 16:39:38 -07:00
|
|
|
"Database",
|
2020-07-30 20:43:18 -05:00
|
|
|
"RSParser",
|
|
|
|
"Articles",
|
2020-07-30 07:27:14 -05:00
|
|
|
]),
|
2020-07-30 04:54:21 -05:00
|
|
|
]
|
|
|
|
)
|