metatext/ServiceLayer/Package.swift

43 lines
1.3 KiB
Swift
Raw Normal View History

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