Skip to content

Commit d0f8cad

Browse files
committed
Disable static frameworks
1 parent c097ef6 commit d0f8cad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+18
-18
lines changed

Package.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import PackageDescription
55
import Foundation
66

7+
// let isBuildingCode = ProcessInfo.processInfo.environment["BUILD_CODE"] == "true"
8+
let isBuildingCode = true // Feat PR#7
9+
let isBuildingDocC = ProcessInfo.processInfo.environment["GITHUB_PAGES"] == "true"
10+
711
let package = Package(
812
name: "GitHubRestAPISwiftOpenAPI",
913
platforms: [.macOS(.v10_15)],
@@ -16,6 +20,20 @@ let package = Package(
1620
+ GitHubRestAPIOpenAPITag.allCases.compactMap(\.testTarget)
1721
)
1822

23+
// dependencies is needed for package users
24+
if !isBuildingCode {
25+
package.targets += [
26+
GitHubRestAPIOpenAPITag.dependenciesTarget
27+
]
28+
}
29+
30+
// swift-docs is not needed for package users
31+
if isBuildingDocC {
32+
package.dependencies += [
33+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
34+
]
35+
}
36+
1937
/// The generator supports filtering the OpenAPI document prior to generation,
2038
/// which can be useful when generating client code for a subset of a large API,
2139
/// or splitting an implementation of a server across multiple modules.
@@ -125,21 +143,3 @@ enum GitHubRestAPIOpenAPITag: String, CaseIterable {
125143
)
126144

127145
}
128-
129-
let isBuildingCode = ProcessInfo.processInfo.environment["BUILD_CODE"] == "true"
130-
131-
// dependencies is needed for package users
132-
if !isBuildingCode {
133-
package.targets += [
134-
GitHubRestAPIOpenAPITag.dependenciesTarget
135-
]
136-
}
137-
138-
let isBuildingDocC = ProcessInfo.processInfo.environment["GITHUB_PAGES"] == "true"
139-
140-
// swift-docs is not needed for package users
141-
if isBuildingDocC {
142-
package.dependencies += [
143-
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
144-
]
145-
}

XCFrameworks/DequeModule.zip

-700 KB
Binary file not shown.
-14.3 MB
Binary file not shown.
-6.21 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIApps.zip

-6.73 MB
Binary file not shown.
-668 KB
Binary file not shown.
-3.32 MB
Binary file not shown.
-1.16 MB
Binary file not shown.
-3.31 MB
Binary file not shown.
-401 KB
Binary file not shown.

0 commit comments

Comments
 (0)