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

41 lines
1.2 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-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",
dependencies: ["DB", "MastodonAPI", "Secrets"]),
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
]
)