forked from loafle/openapi-generator-original
Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray
This commit is contained in:
parent
ab9ea5b2c3
commit
b355cc7381
@ -483,7 +483,7 @@ static NSString * {{classPrefix}}__fileNameForResponse(NSURLResponse *response)
|
||||
|
||||
if (config.sslCaCert) {
|
||||
NSData *certData = [NSData dataWithContentsOfFile:config.sslCaCert];
|
||||
[securityPolicy setPinnedCertificates:@[certData]];
|
||||
[securityPolicy setPinnedCertificates:[NSSet setWithObject:certData]];
|
||||
}
|
||||
|
||||
if (config.verifySSL) {
|
||||
|
@ -30,7 +30,7 @@ Pod::Spec.new do |s|
|
||||
s.public_header_files = '{{podName}}/**/*.h'
|
||||
{{#useCoreData}} s.resources = '{{podName}}/**/*.{xcdatamodeld,xcdatamodel}'{{/useCoreData}}
|
||||
|
||||
s.dependency 'AFNetworking', '~> 3'
|
||||
s.dependency 'AFNetworking', '~> 3.1'
|
||||
s.dependency 'JSONModel', '~> 1.2'
|
||||
s.dependency 'ISO8601', '~> 0.5'
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user