Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo Codegen Lib Should Only Compile on macOS #1041

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/ApolloCLI.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// Wrapper for calling the bundled node-based Apollo CLI.
@available(OSX, message: "Only available on macOS")
public struct ApolloCLI {

/// Creates an instance of `ApolloCLI`, downloading and extracting if needed
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/ApolloCodegen.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// A class to facilitate running code generation
@available(OSX, message: "Only available on macOS")
public class ApolloCodegen {

/// Errors which can happen with code generation
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/ApolloSchemaDownloader.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// A wrapper to facilitate downloading a schema with the Apollo node CLI
@available(OSX, message: "Only available on macOS")
public struct ApolloSchemaDownloader {

/// Runs code generation from the given folder with the passed-in options
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/Basher.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// Bash command runner
@available(OSX, message: "Only available on macOS")
public struct Basher {

public enum BashError: Error, LocalizedError {
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/CLIDownloader.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// Helper for downloading the CLI Zip file so we don't have to include it in the repo.
@available(OSX, message: "Only available on macOS")
struct CLIDownloader {

enum CLIDownloaderError: Error, LocalizedError {
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloCodegenLib/CLIExtractor.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// Helper for extracting and validating the node-based Apollo CLI from a zip.
@available(OSX, message: "Only available on macOS")
struct CLIExtractor {

// MARK: - Extracting the binary
Expand Down