Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Fix compatability with 0.24.0 #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion ApolloAlamofire.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ and solves known limitations of Apollo iOS library.
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
s.dependency 'Alamofire', '~> 4.9.1'
s.dependency 'Apollo', '~> 0.19.0'
s.dependency 'Apollo', '~> 0.27.1'
end
4 changes: 2 additions & 2 deletions ApolloAlamofire/Classes/AlamofireTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class AlamofireTransport: NetworkTransport {

public func send<Operation>(
operation: Operation,
completionHandler: @escaping (Swift.Result<GraphQLResponse<Operation>, Error>) -> ()
completionHandler: @escaping (Swift.Result<GraphQLResponse<Operation.Data>, Error>) -> ()
)
-> Cancellable where Operation: GraphQLOperation {
let vars: JSONEncodable = operation.variables?.mapValues { $0?.jsonValue }
Expand All @@ -55,7 +55,7 @@ public class AlamofireTransport: NetworkTransport {
}
return request.responseJSON { response in
let result = response.result
.flatMap { value -> GraphQLResponse<Operation> in
.flatMap { value -> GraphQLResponse<Operation.Data> in
guard let value = value as? JSONObject else {
throw response.error!
}
Expand Down