2020-08-31 12:21:01 +02:00
|
|
|
// swift-tools-version:5.3
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayer",
|
2020-08-31 12:21:01 +02:00
|
|
|
platforms: [
|
|
|
|
.iOS(.v14),
|
|
|
|
.macOS(.v11)
|
|
|
|
],
|
|
|
|
products: [
|
|
|
|
.library(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayer",
|
|
|
|
targets: ["ServiceLayer"]),
|
2020-08-31 12:21:01 +02:00
|
|
|
.library(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayerMocks",
|
|
|
|
targets: ["ServiceLayerMocks"])
|
2020-08-31 12:21:01 +02:00
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
.package(url: "https://github.com/groue/CombineExpectations.git", .upToNextMajor(from: "0.5.0")),
|
2020-09-07 06:56:18 +02:00
|
|
|
.package(path: "CodableBloomFilter"),
|
2020-09-03 05:28:34 +02:00
|
|
|
.package(path: "DB"),
|
2020-09-04 02:54:05 +02:00
|
|
|
.package(path: "Keychain"),
|
2020-09-04 03:55:46 +02:00
|
|
|
.package(path: "MastodonAPI"),
|
2020-09-04 02:54:05 +02:00
|
|
|
.package(path: "Secrets")
|
2020-08-31 12:21:01 +02:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayer",
|
2021-01-15 11:13:10 +01:00
|
|
|
dependencies: ["CodableBloomFilter", "DB", "MastodonAPI", "Secrets"],
|
|
|
|
resources: [.process("Resources")]),
|
2020-08-31 12:21:01 +02:00
|
|
|
.target(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayerMocks",
|
2020-09-04 02:54:05 +02:00
|
|
|
dependencies: [
|
|
|
|
"ServiceLayer",
|
2020-09-04 03:55:46 +02:00
|
|
|
.product(name: "MastodonAPIStubs", package: "MastodonAPI"),
|
2020-09-04 02:54:05 +02:00
|
|
|
.product(name: "MockKeychain", package: "Keychain")]),
|
2020-08-31 12:21:01 +02:00
|
|
|
.testTarget(
|
2020-08-31 20:57:02 +02:00
|
|
|
name: "ServiceLayerTests",
|
|
|
|
dependencies: ["CombineExpectations", "ServiceLayerMocks"])
|
2020-08-31 12:21:01 +02:00
|
|
|
]
|
|
|
|
)
|