Skip to content

Commit

Permalink
Merge pull request #11 from peek-travel/fix/add-foundation
Browse files Browse the repository at this point in the history
add missing foundation imports
  • Loading branch information
ricardohg authored Feb 6, 2023
2 parents 4bd1384 + 8fc7d55 commit a005ac9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/Apollo/GraphQLDependencyTracker.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#if !COCOAPODS
import ApolloAPI
import Foundation
#endif

import Foundation

final class GraphQLDependencyTracker: GraphQLResultAccumulator {

private var dependentKeys: Set<CacheKey> = Set()
Expand Down
2 changes: 2 additions & 0 deletions Sources/Apollo/GraphQLResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import ApolloAPI
#endif

import Foundation

/// Represents a GraphQL response received from a server.
public final class GraphQLResponse<Data: RootSelectionSet> {

Expand Down
3 changes: 2 additions & 1 deletion Sources/Apollo/GraphQLResult.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
#endif

import Foundation

/// Metadata about the a returned result.
public struct GraphQLResultMetadata {
/// The oldest date that data in the result was updated.
Expand Down
3 changes: 2 additions & 1 deletion Sources/Apollo/GraphQLResultAccumulator.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#if !COCOAPODS
import ApolloAPI
import Foundation
#endif

import Foundation

protocol GraphQLResultAccumulator: AnyObject {
associatedtype PartialResult
associatedtype FieldEntry
Expand Down

0 comments on commit a005ac9

Please sign in to comment.