Skip to content

Commit 443637a

Browse files
Merge pull request #620 from skevy/fix-foundation-imports
[airbnb] Fix missing "Foundation" imports
2 parents a089cb5 + 4a6210a commit 443637a

5 files changed

Lines changed: 8 additions & 0 deletions

File tree

Sources/Apollo/Decoding.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
private typealias GroupedFields = GroupedSequence<String, GraphQLField>
24

35
func decode<SelectionSet: GraphQLSelectionSet>(selectionSet: SelectionSet.Type, from object: JSONObject, variables: GraphQLMap? = nil) throws -> SelectionSet {

Sources/Apollo/GraphQLExecutor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Dispatch
2+
import Foundation
23

34
/// A resolver is responsible for resolving a value for a field.
45
typealias GraphQLResolver = (_ object: JSONObject, _ info: GraphQLResolveInfo) -> ResultOrPromise<JSONValue?>

Sources/Apollo/GraphQLHTTPRequestError.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
/// An error which has occurred during the serialization of a request.
24
public enum GraphQLHTTPRequestError: Error, LocalizedError {
35
case cancelledByDelegate

Sources/Apollo/GraphQLHTTPResponseError.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
/// A transport-level, HTTP-specific error.
24
public struct GraphQLHTTPResponseError: Error, LocalizedError {
35
public enum ErrorKind {

Sources/ApolloWebSocket/WebSocketTransport.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Apollo
33
#endif
44
import Starscream
5+
import Foundation
56

67
// To allow for alternative implementations supporting the same WebSocketClient protocol
78
public class ApolloWebSocket: WebSocket, ApolloWebSocketClient {

0 commit comments

Comments
 (0)