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

+18-18
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.

XCFrameworks/GitHubRestAPIActions.zip

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

XCFrameworks/GitHubRestAPIApps.zip

-6.73 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIBilling.zip

-668 KB
Binary file not shown.

XCFrameworks/GitHubRestAPIChecks.zip

-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.
-9.31 MB
Binary file not shown.

XCFrameworks/GitHubRestAPICopilot.zip

-1.76 MB
Binary file not shown.
-3.82 MB
Binary file not shown.
-1.24 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIDesktop.zip

-60.8 KB
Binary file not shown.

XCFrameworks/GitHubRestAPIEmojis.zip

-200 KB
Binary file not shown.

XCFrameworks/GitHubRestAPIGists.zip

-3.35 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIGit.zip

-2.57 MB
Binary file not shown.
-320 KB
Binary file not shown.
-1.03 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIIssues.zip

-10.6 MB
Binary file not shown.
-750 KB
Binary file not shown.
-379 KB
Binary file not shown.
-61.3 KB
Binary file not shown.

XCFrameworks/GitHubRestAPIMeta.zip

-875 KB
Binary file not shown.
-4.35 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIOidc.zip

-413 KB
Binary file not shown.

XCFrameworks/GitHubRestAPIOrgs.zip

-10.4 MB
Binary file not shown.
-3.47 MB
Binary file not shown.
-3.91 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIPulls.zip

-7.93 MB
Binary file not shown.
-435 KB
Binary file not shown.
-2.94 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIRepos.zip

-33.4 MB
Binary file not shown.

XCFrameworks/GitHubRestAPISearch.zip

-4.22 MB
Binary file not shown.
-1.96 MB
Binary file not shown.
-5.58 MB
Binary file not shown.

XCFrameworks/GitHubRestAPITeams.zip

-7.45 MB
Binary file not shown.

XCFrameworks/GitHubRestAPIUsers.zip

-4.57 MB
Binary file not shown.

XCFrameworks/HTTPTypes.zip

-916 KB
Binary file not shown.

XCFrameworks/OpenAPIRuntime.zip

-3.21 MB
Binary file not shown.

XCFrameworks/OpenAPIURLSession.zip

-977 KB
Binary file not shown.

0 commit comments

Comments
 (0)