Skip to content

Commit

Permalink
Linux and docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii-londar committed Sep 21, 2020
1 parent 0bd3e7f commit b3325d9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions GithubAPI/Classes/ActivityAPI/Starring/StarringAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions GithubAPI/Classes/GithubAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import Foundation
import BaseAPI

#if swift(>=5.1) && os(Linux)
import FoundationNetworking
#endif

public class GithubAPI: BaseAPI {
var authentication: Authentication?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit b3325d9

Please sign in to comment.