Committed the generated OpenAPI sources instead of using the plugin.
This commit is contained in:
1 parent
c984be3263
commit
a303150963
7 files changed
+1012376
-20
No files matched your search
+14
-6
@@ -12,6 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===
|
||||
|
||||
import class Foundation.ProcessInfo
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
@@ -30,10 +31,9 @@ let package = Package(
|
||||
),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/apple/swift-openapi-generator.git", exact: "1.11.0"),
|
||||
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.5.0"),
|
||||
.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.2"),
|
||||
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0")
|
||||
// Must be at least the runtime version required by the generator in `Tools`.
|
||||
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.11.0"),
|
||||
.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.2")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
@@ -43,8 +43,9 @@ let package = Package(
|
||||
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession")
|
||||
],
|
||||
path: "Sources/ASConnectService",
|
||||
plugins: [
|
||||
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")
|
||||
exclude: [
|
||||
"openapi.json",
|
||||
"openapi-generator-config.yaml"
|
||||
]
|
||||
),
|
||||
.testTarget(
|
||||
@@ -57,6 +58,13 @@ let package = Package(
|
||||
]
|
||||
)
|
||||
|
||||
// Only added by the documentation targets, so consumers don't resolve it.
|
||||
if ProcessInfo.processInfo.environment["ENABLE_DOCC_PLUGIN"] != nil {
|
||||
package.dependencies.append(
|
||||
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0")
|
||||
)
|
||||
}
|
||||
|
||||
// MARK: - Constants
|
||||
|
||||
enum AppStoreConnectService {
|
||||
|
||||
Reference in new issue
Block a user