diff --git a/GithubAPI/Classes/ActivityAPI/Starring/StarringAPI.swift b/GithubAPI/Classes/ActivityAPI/Starring/StarringAPI.swift index cd86f9f..aeb2ae8 100644 --- a/GithubAPI/Classes/ActivityAPI/Starring/StarringAPI.swift +++ b/GithubAPI/Classes/ActivityAPI/Starring/StarringAPI.swift @@ -7,6 +7,10 @@ import Foundation +#if swift(>=5.1) && os(Linux) + import FoundationNetworking +#endif + /// Repository Starring is a feature that lets users bookmark repositories. Stars are shown next to repositories to show an approximate level of interest. Stars have no effect on notifications or the activity feed. For that, see Repository Watching. public class StarringAPI: GithubAPI { /// List of users starred repository. diff --git a/GithubAPI/Classes/GithubAPI.swift b/GithubAPI/Classes/GithubAPI.swift index 8ec1379..e691f9a 100755 --- a/GithubAPI/Classes/GithubAPI.swift +++ b/GithubAPI/Classes/GithubAPI.swift @@ -9,6 +9,10 @@ import Foundation import BaseAPI +#if swift(>=5.1) && os(Linux) + import FoundationNetworking +#endif + public class GithubAPI: BaseAPI { var authentication: Authentication? diff --git a/GithubAPI/Classes/RepositoriesAPI/RepositoriesContentsAPI.swift b/GithubAPI/Classes/RepositoriesAPI/RepositoriesContentsAPI.swift index cfdaab9..39c1de5 100755 --- a/GithubAPI/Classes/RepositoriesAPI/RepositoriesContentsAPI.swift +++ b/GithubAPI/Classes/RepositoriesAPI/RepositoriesContentsAPI.swift @@ -8,6 +8,10 @@ import Foundation import BaseAPI +#if swift(>=5.1) && os(Linux) + import FoundationNetworking +#endif + /// These API endpoints let you create, modify, and delete Base64 encoded content in a repository. See media types for requesting the raw format or rendered HTML (when supported). public class RepositoriesContentsAPI: GithubAPI { /// Gets the preferred README for a repository. diff --git a/Package.swift b/Package.swift index a5e135a..8c57fc2 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.2 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription