[Swift] Use the latest Alamofire (3.4.1)

This commit updates the Swift client templates to be compatible with the
latest version of Alamofire. It bumps the dependency version in the
podspec and names the argument when calling `responseData`. We found
that XCode was having trouble with the overloaded methods and needed the
named argument for hinting.
This commit is contained in:
Jack Wink 2016-07-29 21:57:08 -07:00
parent aa58497247
commit f2ebb08b33
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class AlamofireRequestBuilder<T>: RequestBuilder<T> {
switch T.self {
case is NSData.Type:
validatedRequest.responseData({ (dataResponse) in
validatedRequest.responseData(completionHandler: { (dataResponse) in
cleanupRequest()
if (dataResponse.result.isFailure) {

View File

@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.documentation_url = '{{podDocumentationURL}}'{{/podDocumentationURL}}
s.source_files = '{{projectName}}/Classes/Swaggers/**/*.swift'{{#usePromiseKit}}
s.dependency 'PromiseKit', '~> 3.1.1'{{/usePromiseKit}}
s.dependency 'Alamofire', '~> 3.1.5'
s.dependency 'Alamofire', '~> 3.4.1'
end