Skip to content

Commit

Permalink
Add Linux support (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpablo authored Sep 2, 2024
1 parent 05cdb05 commit 06be399
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/NotionSwift/Network/NetworkClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public enum Network {
public typealias HTTPHeaders = [String: String]
Expand Down
3 changes: 3 additions & 0 deletions Sources/NotionSwift/Network/NetworkClientHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public enum NetworkClientHelpers {
public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
Expand Down
3 changes: 3 additions & 0 deletions Sources/NotionSwift/Network/URLBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public class URLBuilder {
let base: URL
Expand Down
3 changes: 3 additions & 0 deletions Sources/NotionSwift/NotionClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public final class NotionClient: NotionClientType {
private let accessKeyProvider: AccessKeyProvider
Expand Down

0 comments on commit 06be399

Please sign in to comment.