mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-27 16:00:29 +00:00
36 lines
895 B
Swift
36 lines
895 B
Swift
|
// swift-tools-version:5.3
|
||
|
|
||
|
import PackageDescription
|
||
|
|
||
|
let package = Package(
|
||
|
name: "MastodonAPI",
|
||
|
platforms: [
|
||
|
.iOS(.v14),
|
||
|
.macOS(.v11)
|
||
|
],
|
||
|
products: [
|
||
|
.library(
|
||
|
name: "MastodonAPI",
|
||
|
targets: ["MastodonAPI"]),
|
||
|
.library(
|
||
|
name: "MastodonAPIStubs",
|
||
|
targets: ["MastodonAPIStubs"])
|
||
|
],
|
||
|
dependencies: [
|
||
|
.package(path: "HTTP"),
|
||
|
.package(path: "Mastodon")
|
||
|
],
|
||
|
targets: [
|
||
|
.target(
|
||
|
name: "MastodonAPI",
|
||
|
dependencies: ["HTTP", "Mastodon"]),
|
||
|
.target(
|
||
|
name: "MastodonAPIStubs",
|
||
|
dependencies: ["MastodonAPI", .product(name: "Stubbing", package: "HTTP")],
|
||
|
resources: [.process("Resources")]),
|
||
|
.testTarget(
|
||
|
name: "MastodonAPITests",
|
||
|
dependencies: ["MastodonAPIStubs"])
|
||
|
]
|
||
|
)
|