metatext-app-ios-iphone-ipad/ServiceLayer/Package.swift

43 lines
1.3 KiB
Swift
Raw Normal View History

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"),
.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",
.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
]
)