-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Package.swift
56 lines (54 loc) · 1.78 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "JellyfinAPI",
platforms: [
.iOS(.v13),
.macCatalyst(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(name: "JellyfinAPI", targets: ["JellyfinAPI"]),
],
dependencies: [
.package(url: "https://github.com/kean/Get", from: "2.1.6"),
.package(url: "https://github.com/CreateAPI/URLQueryEncoder", from: "0.2.0"),
],
targets: [
.target(
name: "JellyfinAPI",
dependencies: [
.product(name: "Get", package: "Get"),
.product(name: "URLQueryEncoder", package: "URLQueryEncoder"),
],
path: "Sources",
exclude: [
"jellyfin-openapi-stable.json",
"create-api-config.yaml",
]
),
.binaryTarget(
name: "create-api",
url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.2.0/create-api.artifactbundle.zip",
checksum: "6f8a3ce099f07eb2655ccaf6f66d8c9a09b74bb2307781c4adec36609ddac009"
),
.plugin(
name: "CreateAPI",
capability: .command(
intent: .custom(
verb: "generate-api",
description: "Generates the OpenAPI entities and paths using CreateAPI"
),
permissions: [
.writeToPackageDirectory(reason: "To output the generated source code"),
]
),
dependencies: [
.target(name: "create-api"),
]
),
]
)