2020-08-30 23:33:11 +00:00
|
|
|
// swift-tools-version:5.3
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "Mastodon",
|
2020-08-31 00:26:54 +00:00
|
|
|
platforms: [
|
|
|
|
.iOS(.v14),
|
|
|
|
.macOS(.v11)
|
|
|
|
],
|
2020-08-30 23:33:11 +00:00
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "Mastodon",
|
2020-08-31 10:21:01 +00:00
|
|
|
targets: ["Mastodon"]),
|
|
|
|
.library(
|
|
|
|
name: "MastodonStubs",
|
|
|
|
targets: ["MastodonStubs"])
|
2020-08-30 23:33:11 +00:00
|
|
|
],
|
|
|
|
dependencies: [
|
2020-08-31 01:40:58 +00:00
|
|
|
.package(path: "HTTP")
|
2020-08-30 23:33:11 +00:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "Mastodon",
|
2020-08-31 01:40:58 +00:00
|
|
|
dependencies: ["HTTP"]),
|
2020-08-31 10:21:01 +00:00
|
|
|
.target(
|
|
|
|
name: "MastodonStubs",
|
|
|
|
dependencies: ["Mastodon", .product(name: "Stubbing", package: "HTTP")],
|
|
|
|
resources: [.process("Resources")]),
|
2020-08-30 23:33:11 +00:00
|
|
|
.testTarget(
|
|
|
|
name: "MastodonTests",
|
2020-08-31 10:21:01 +00:00
|
|
|
dependencies: ["MastodonStubs"])
|
2020-08-30 23:33:11 +00:00
|
|
|
]
|
|
|
|
)
|