Skip to content

Commit

Permalink
fix macOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Oct 12, 2024
1 parent 5ddd9c7 commit 157f894
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 159 deletions.
16 changes: 16 additions & 0 deletions Lambdas/GitHubAPI/Aliases.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#if canImport(FoundationEssentials)
import FoundationEssentials

typealias FoundationData = FoundationEssentials.Data
typealias FoundationDate = FoundationEssentials.Date
typealias FoundationURL = FoundationEssentials.URL
#else
import struct Foundation.Data
import struct Foundation.Date
import struct Foundation.URL

typealias FoundationData = Foundation.Data
typealias FoundationDate = Foundation.Date
typealias FoundationURL = Foundation.URL
#endif

package typealias Repository = Components.Schemas.repository
package typealias User = Components.Schemas.simple_user
package typealias Organization = Components.Schemas.organization_simple
Expand Down
2 changes: 1 addition & 1 deletion Lambdas/GitHubAPI/GeneratedSources/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package struct Client: APIProtocol {
/// - transport: A transport that performs HTTP operations.
/// - middlewares: A list of middlewares to call before the transport.
package init(
serverURL: FoundationEssentials.URL,
serverURL: FoundationURL,
configuration: Configuration = .init(),
transport: any ClientTransport,
middlewares: [any ClientMiddleware] = []
Expand Down
Loading

0 comments on commit 157f894

Please sign in to comment.