-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.swift
73 lines (72 loc) · 2.45 KB
/
Project.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import ProjectDescription
let project = Project(
name: "SUIGitHubBrowser",
// packages: [
// .remote(
// url: "https://github.com/apple/swift-openapi-generator",
// requirement: .upToNextMajor(from: "1.4.0")
// )
// ],
targets: [
.target(
name: "SUIGitHubBrowser",
destinations: .iOS,
product: .app,
bundleId: "hu.galiasys.SUIGitHubBrowser",
infoPlist: .extendingDefault(
with: [
"UILaunchScreen": [
"UIColorName": "",
"UIImageName": "",
],
]
),
sources: ["SUIGitHubBrowser/Sources/**"],
resources: ["SUIGitHubBrowser/Resources/**"],
dependencies: [
.target(name: "GitHubClient")
]
),
.target(
name: "SUIGitHubBrowserTests",
destinations: .iOS,
product: .unitTests,
bundleId: "hu.galiasys.SUIGitHubBrowserTests",
infoPlist: .default,
sources: ["SUIGitHubBrowser/Tests/**"],
resources: [],
dependencies: [.target(name: "SUIGitHubBrowser")]
),
.target(
name: "GitHubClient",
destinations: .iOS,
product: .framework,
bundleId: "hu.galiasys.GitHubClient",
sources: ["GitHubClient/Sources/**"],
resources: ["GitHubClient/Resources/**"],
scripts: [
.pre(
script: """
pushd GitHubClient
/usr/bin/make generate
popd
""",
name: "Generate API Client",
inputPaths: [
"GitHubClient/Resources/openapi.yaml",
"GitHubClient/Resources/openapi-generator-config.yaml"
],
outputPaths: [
"GitHubClient/Sources/Generated/Types.swift",
"GitHubClient/Sources/Generated/Client.swift"
]
)
],
dependencies: [
// .package(product: "swift-openapi-generator", type: .plugin),
.external(name: "OpenAPIRuntime"),
.external(name: "OpenAPIURLSession")
]
)
]
)