Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray

This commit is contained in:
Roman Truba 2016-11-05 22:10:52 +03:00
parent ab9ea5b2c3
commit b355cc7381
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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