From a42953f62ee62bdadcf02676e7616cd736aeb975 Mon Sep 17 00:00:00 2001 From: Jeff Hunter Date: Tue, 7 May 2013 13:53:49 -0700 Subject: [PATCH] explicitly synthesize properties to eliminate warnings with -Wobjc-missing-property-synthesis --- AFNetworking/AFHTTPClient.m | 5 +++++ AFNetworking/AFURLConnectionOperation.m | 1 + 2 files changed, 6 insertions(+) diff --git a/AFNetworking/AFHTTPClient.m b/AFNetworking/AFHTTPClient.m index a2a10fa..98522ea 100644 --- a/AFNetworking/AFHTTPClient.m +++ b/AFNetworking/AFHTTPClient.m @@ -212,6 +212,10 @@ NSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value) { @synthesize networkReachabilityStatus = _networkReachabilityStatus; @synthesize networkReachabilityStatusBlock = _networkReachabilityStatusBlock; #endif +#ifdef _AFNETWORKING_PIN_SSL_CERTIFICATES_ +@synthesize defaultSSLPinningMode = _defaultSSLPinningMode; +#endif +@synthesize allowsInvalidSSLCertificate = _allowsInvalidSSLCertificate; + (instancetype)clientWithBaseURL:(NSURL *)url { return [[self alloc] initWithBaseURL:url]; @@ -1186,6 +1190,7 @@ typedef enum { @synthesize headers = _headers; @synthesize body = _body; @synthesize bodyContentLength = _bodyContentLength; +@synthesize inputStream = _inputStream; @synthesize hasInitialBoundary = _hasInitialBoundary; @synthesize hasFinalBoundary = _hasFinalBoundary; diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 41034a1..85f2045 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -138,6 +138,7 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat @synthesize request = _request; @synthesize response = _response; @synthesize error = _error; +@synthesize allowsInvalidSSLCertificate = _allowsInvalidSSLCertificate; @synthesize responseData = _responseData; @synthesize responseString = _responseString; @synthesize responseStringEncoding = _responseStringEncoding;