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

45 lines
1.4 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: [
2021-01-29 00:50:24 +01:00
.package(url: "https://github.com/groue/CombineExpectations.git", .upToNextMajor(from: "0.7.0")),
2021-02-28 02:47:00 +01:00
.package(name: "CodableBloomFilter",
url: "https://github.com/metabolist/codable-bloom-filter.git",
.upToNextMajor(from: "1.0.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",
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
]
)