Changelog History
Page 5
-
v1.2.1 Changes
April 18, 2013Add
allowsInvalidSSLCertificate
property toAFURLConnectionOperation
andAFHTTPClient
, replacing_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_
macro (Kevin Harwood)Add SSL pinning mode to example project (Kevin Harwood)
Add name to AFNetworking network thread (Peter Steinberger)
Change pinned certificates to trust all derived certificates (Oliver Letterer)
Fix documentation about SSL pinning (Kevin Harwood, Mattt Thompson)
Fix certain enumerated loops to use fast enumeration, resulting in better 🐎 performance (Oliver Letterer)
Fix macro to work correctly under Mac OS X 10.7 and iOS 4 SDK (Paul Melnikow)
Fix documentation, removing unsupported
@discussion
tags (Michele Titolo)Fix
SecTrustCreateWithCertificates
expecting an array as first argument (Oliver Letterer)Fix to use
errSecSuccess
instead ofnoErr
for Security frameworks OSStatus (Oliver Letterer)Fix
AFImageRequestOperation
to use[self alloc]
instead of explicit class, which allows for subclassing (James Clarke)Fix for
numberOfFinishedOperations
calculations (Rune Madsen)Fix calculation of data length in
-connection:didReceiveData:
(Jean-Francois Morin)Fix to encode JSON only with UTF-8, following recommendation of
NSJSONSerialiation
(Sebastian Utz)
-
v1.2.0 Changes
March 24, 2013Add
SSLPinningMode
property toAFHTTPClient
(Oliver Letterer, Kevin Harwood, Adam Becevello, Dustin Barker, Mattt Thompson)Add single quote ("'"), comma (","), and asterix ("*") to escaped URL encoding characters (Eric Florenzano, Marc Nijdam, Garrett Murray)
Add
credential
property toAFURLConnectionOperation
(Mattt Thompson)Add
-setDefaultCredential:
toAFHTTPClient
Add
shouldUseCredentialStorage
property toAFURLConnectionOperation
(Mattt Thompson)Add support for repeated key value pairs in
AFHTTPClient
URL query string (Nick Dawson)Add
AFMultipartFormData - appendPartWithFileURL:name:fileName:mimeType:error
(Daniel Rodríguez Troitiño)Add
AFMultipartFormData - appendPartWithInputStream:name:fileName:mimeType:
(@joein3d)Change SSL pinning to be runtime property on
AFURLConnectionOperation
rather than defined by macro (Oliver Letterer)Change
AFMultipartBodyStream
toAFMultipartBodyStreamProvider
, vending one side of a bound CFStream pair rather than subclassingNSInputStream
(Mike Ash)Change default
Accept-Language
header inAFHTTPClient
(@therigu, Mattt Thompson)Change
AFHTTPClient
operation cancellation to be based on request URL path rather than absolute URL string (Mattt Thompson)Change request operation subclass processing queues to use
DISPATCH_QUEUE_CONCURRENT
(Mattt Thompson)Change
UIImageView+AFNetworking
to resolve asymmetry in cached image case between success block provided and not provided (@Eveets, Mattt Thompson)Change
UIImageView+AFNetworking
to compareNSURLRequest
instead ofNSURL
to determine if previous request was equivalent (Cédric Luthi)Change
UIImageView+AFNetworking
to only set image if non-nil
(Sean Kovacs)Change indentation settings to four spaces at the project level (Cédric Luthi)
Change
AFNetworkActivityIndicatorManager
to only update if requests have a non-nil
URL (Cédric Luthi)Change
UIImageView+AFNetworking
to not dosetHTTPShouldHandleCookies
(Konstantinos Vaggelakos)Fix request stream exhaustion error on authentication challenges (Alex Burgel)
Fix implementation to use
NSURL
methods instead ofCFURL
functions where applicable (Cédric Luthi)Fix race condition in
UIImageView+AFNetworking
(Peyman)Fix
responseJSON
,responseString
, andresponseStringEncoding
to be threadsafe (Jon Parise, Mattt Thompson)Fix
AFContentTypeForPathExtension
to ensure non-NULL
content return value (Zach Waugh)Fix documentation for
appendPartWithFileURL:name:error:
(Daniel Rodríguez Troitiño)Fix request operation subclass processing queues to initialize with
dispatch_once
(Sasmito Adibowo)Fix posting of
AFNetworkingOperationDidStartNotification
and 🌲AFNetworkingOperationDidFinishNotification
to avoid crashes when logging in response to notifications (Blake Watters)Fix ordering of registered operation consultation in
AFHTTPClient
(Joel Parsons)Fix warning: multiple methods named 'postNotificationName:object:' found [-Wstrict-selector-match] (Oliver Jones)
Fix warning: multiple methods named 'objectForKey:' found [-Wstrict-selector-match] (Oliver Jones)
Fix warning: weak receiver may be unpredictably set to nil [-Wreceiver-is-weak] (Oliver Jones)
Fix missing #pragma clang diagnostic pop (Steven Fisher)
-
v1.1.0 Changes
December 27, 2012Add optional SSL certificate pinning with
#define _AFNETWORKING_PIN_SSL_CERTIFICATES_
(Dustin Barker)Add
responseStringEncoding
property toAFURLConnectionOperation
(Mattt Thompson)Add
userInfo
property toAFURLConnectionOperation
(Mattt Thompson, Steven Fisher)Change behavior to cause a failure when an operation is cancelled (Daniel Tull)
Change return type of class constructors to
instancetype
(@guykogus)Change notifications to always being posted on an asynchronously-dispatched block run on the main queue (Evadne Wu, Mattt Thompson)
Change from NSLocalizedString to NSLocalizedStringFromTable with AFNetworking.strings table for localized strings (Cédric Luthi)
Change
-appendPartWithHeaders:body:
to add assertion handler for existence of body data parameter (Jonathan Beilin)Change
AFHTTPRequestOperation -responseString
to follow guidelines from RFC 2616 regarding the use of string encoding when none is specified in the response (Jorge Bernal)Change AFHTTPClient parameter serialization dictionary keys with
caseInsensitiveCompare:
to ensure deterministic ordering of query string parameters, which may otherwise cause ambiguous representations of nested parameters (James Coleman, Mattt Thompson)Fix -Wstrict-selector-match warnings raised by Xcode 4.6DP3 (Jesse Collis, Cédric Luthi)
Fix NSJSONSerialization crash with Unicode character escapes in JSON response (Mathijs Kadijk)
Fix issue with early return in -startMonitoringNetworkReachability if network reachability object could not be created (i.e. invalid hostnames) (Basil Shkara)
Fix retain cycles in AFImageRequestOperation.m and AFHTTPClient.m caused by strong references within blocks (Nick Forge)
Fix issue caused by Rails behavior of returning a single space in head :ok responses, which is interpreted as invalid (Sebastian Ludwig)
Fix issue in streaming multipart upload, where final encapsulation boundary would not be appended if it was larger than the available buffer, causing a ⏱ potential timeout (Tomohisa Takaoka, David Kasper)
Fix memory leak of network reachability callback block (Mattt Thompson)
Fix
-initWithCoder:
forAFURLConnectionOperation
andAFHTTPClient
to cast scalar types (Mattt Thompson)Fix bug in
-enqueueBatchOfHTTPRequestOperations:...
to by usingaddOperations:waitUntilFinished:
instead of adding each operation individually. (Mattt Thompson)Change
#warning
messages of checks forCoreServices
and 🏗MobileCoreServices
to message according to the build target platform (Mattt Thompson)Change
AFQueryStringFromParametersWithEncoding
to create keys string 📚 representations using the description method as specified in documentation (Cédric Luthi)Fix __unused keywords for better Xcode indexing (Christian Rasmussen)
Fix warning: unused parameter 'x' [-Werror,-Wunused-parameter] (Oliver Jones)
Fix warning: property is assumed atomic by default [-Werror,-Wimplicit-atomic-properties] (Oliver Jones)
Fix warning: weak receiver may be unpredictably null in ARC mode [-Werror,-Wreceiver-is-weak] (Oliver Jones)
Fix warning: multiple methods named 'selector' found [-Werror,-Wstrict-selector-match] (Oliver Jones)
Fix warning: 'macro' is not defined, evaluates to 0 (Oliver Jones)
Fix warning: atomic by default property 'X' has a user (Oliver Jones)defined getter (property should be marked 'atomic' if this is intended) [-Werror, -Wcustom-atomic-properties] (Oliver Jones)
Fix warning: 'response' was marked unused but was used [-Werror,-Wused-but-marked-unused] (Oliver Jones)
Fix warning: enumeration value 'AFFinalBoundaryPhase' not explicitly handled in switch [-Werror,-Wswitch-enum] (Oliver Jones)
-
v1.0.1 Changes
November 01, 2012Fix error in multipart upload streaming, where byte range at boundaries was not correctly calculated (Stan Chang Khin Boon)
If a success block is specified to
UIImageView -setImageWithURLRequest: placeholderImage:success:failure
:, it is now the responsibility of the block to set the image of the image view (Mattt Thompson)Add
JSONReadingOptions
property toAFJSONRequestOperation
(Jeremy Foo, Mattt Thompson)Using __weak self / __strong self pattern to break retain cycles in background task and network reachability blocks (Jerry Beers, Dan Weeks)
Fix parameter encoding to leave period (
.
) unescaped (Diego Torres)Fixing last file component in multipart form part creation (Sylver Bruneau)
Remove executable permission on AFHTTPClient source files (Andrew Sardone)
Fix warning (error with -Werror) on implicit 64 to 32 conversion (Dan Weeks)
Add GitHub's .gitignore file (Nate Stedman)
Updates to README (@ckmcc)
-
v1.0 Changes
October 15, 2012AFNetworking now requires iOS 5 / Mac OSX 10.7 or higher (Mattt Thompson)
AFNetworking now uses Automatic Reference Counting (ARC) (Mattt Thompson)
AFNetworking raises compiler warnings for missing features when SystemConfiguration or CoreServices / MobileCoreServices frameworks are not included in the project and imported in the precompiled headers (Mattt Thompson)
AFNetworking now raises compiler error when not compiled with ARC (Steven Fisher)
Add
NSCoding
andNSCopying
protocol conformance toAFURLConnectionOperation
andAFHTTPClient
(Mattt Thompson)Add substantial improvements HTTP multipart streaming support, having files streamed directly from disk and read sequentially from a custom input stream (Max Lansing, Stan Chang Khin Boon, Mattt Thompson)
Add
AFMultipartFormData -throttleBandwidthWithPacketSize:delay:
as ↪ workaround to issues when uploading over 3G (Mattt Thompson)Add request and response to
userInfo
of errors returned from failingAFHTTPRequestOperation
(Mattt Thompson)Add
userInfo
dictionary with current status in reachability changes (Mattt Thompson)Add
Accept
header for image requests inUIImageView
category (Bratley Lower)Add explicit declaration of
NSURLConnection
delegate methods so that they can be overridden in subclasses (Mattt Thompson, Evan Grim)Add parameter validation to match conditions specified in documentation (Jason Brennan, Mattt Thompson)
Add import to
UIKit
to avoid build errors fromUIDevice
references in 0️⃣User-Agent
default header (Blake Watters)Remove
AFJSONUtilities
in favor ofNSJSONSerialization
(Mattt Thompson)Remove
extern
declaration ofAFURLEncodedStringFromStringWithEncoding
✅ function (CFURLCreateStringByAddingPercentEscapes
should be used instead) (Mattt Thompson)Remove
setHTTPShouldHandleCookies:NO
fromAFHTTPClient
(@phamsonha, Mattt Thompson)Remove
dispatch_retain
/dispatch_release
with ARC in iOS 6 (Benoit Bourdon)Fix threading issue with
AFNetworkActivityIndicatorManager
(Eric Patey)Fix issue where
AFNetworkActivityIndicatorManager
count could become negative (@ap4y)Fix properties to explicitly set options to suppress warnings (Wen-Hao Lue, Mattt Thompson)
Fix compiler warning caused by mismatched types in upload / download progress blocks (Gareth du Plooy, tomas.a)
Fix weak / strong variable relationships in
completionBlock
(Peter Steinberger)Fix string formatting syntax warnings caused by type mismatch (David Keegan, Steven Fisher, George Cox)
Fix minor potential security vulnerability by explicitly using string format in NSError localizedDescription value in userInfo (Steven Fisher)
Fix
AFURLConnectionOperation -pause
by adding state checks to prevent likely memory issues when resuming (Mattt Thompson)Fix warning caused by miscast of type when
CLANG_WARN_IMPLICIT_SIGN_CONVERSION
is set (Steven Fisher)Fix incomplete implementation warning in example code (Steven Fisher)
Fix warning caused by using
==
comparator on floats (Steven Fisher)Fix iOS 4 bug where file URLs return
NSURLResponse
rather thanNSHTTPURLResponse
objects (Leo Lobato)Fix calculation of finished operations in batch operation progress callback (Mattt Thompson)
Fix documentation typos (Steven Fisher, Matthias Wessendorf, [email protected])
Fix
hasAcceptableStatusCode
to return true after a network failure (Tony Million)Fix warning about missing prototype for private static method (Stephan Diederich)
Fix issue where
nil
content type resulted in unacceptable content type (Mattt Thompson)Fix bug related to setup and scheduling of output stream (Stephen Tramer)
Fix AFContentTypesFromHTTPHeader to correctly handle comma-delimited content types (Peyman, Mattt Thompson, @jsm174)
Fix crash caused by
_networkReachability
not being set toNULL
after releasing (Blake Watters)Fix Podspec to correctly import required headers and use ARC (Eloy Durán, Blake Watters)
Fix query string parameter escaping to leave square brackets unescaped (Mattt Thompson)
Fix query string parameter encoding of
NSNull
values (Daniel Rinser)Fix error caused by referencing
__IPHONE_OS_VERSION_MIN_REQUIRED
without importingAvailability.h
(Blake Watters)Update example to use App.net API, as Twitter shut off its unauthorized access to the public timeline (Mattt Thompson)
Update
AFURLConnectionOperation
to replaceNSAutoReleasePool
with 🚀@autoreleasepool
(Mattt Thompson)Update
AFHTTPClient
operation queue to specify 0️⃣NSOperationQueueDefaultMaxConcurrentOperationCount
rather than previously-defined constant (Mattt Thompson)Update
AFHTTPClient -initWithBaseURL
to automatically append trailing 0️⃣ slash, so as to fix common issue where default path is not respected without trailing slash (Steven Fisher)Update default
AFHTTPClient
User-Agent
header strings (Mattt Thompson, Steven Fisher)Update icons for iOS example application (Mattt Thompson)
Update
numberOfCompletedOperations
variable in progress block to be 📇 renamed tonumberOfFinishedOperations
(Mattt Thompson)
-
v1.0.RC1 Changes
April 25, 2012Add
AFHTTPRequestOperation +addAcceptableStatusCodes / +addAcceptableContentTypes
to dynamically add acceptable status codes and content types on the class level (Mattt Thompson)Add support for compound and complex
Accept
headers that include multiple content types and / or specify a particular character encoding (Mattt Thompson)Add
AFURLConnectionOperation -setShouldExecuteAsBackgroundTaskWithExpirationHandler:
to have operations finish once an app becomes inactive (Mattt Thompson)Add support for pausing / resuming request operations (Peter Steinberger, Mattt Thompson)
Improve network reachability functionality in
AFHTTPClient
, including a distinction between WWan and WiFi reachability (Kevin Harwood, Mattt Thompson)
-
v0.10.0 Changes
June 26, 2012Add Twitter Mac Example application (Mattt Thompson)
Add note in README about how to set
-fno-objc-arc
flag for multiple files at once (Pål Brattberg)Add note in README about 64-bit architecture requirement (@rmuginov, Mattt Thompson)
Add note in
AFNetworkActivityIndicatorManager
about not having to manually manage animation state (Mattt Thompson)Add missing block parameter name for
imageProcessingBlock
(Francois Lambert)Add NextiveJson to list of supported JSON libraries (Mattt Thompson)
Restore iOS 4.0 compatibility with
addAcceptableStatusCodes:
andaddAcceptableContentTypes:
(Zachary Waldowski)Update
AFHTTPClient
to use HTTP pipelining forGET
andHEAD
requests by default (Mattt Thompson)Remove @private ivar declaration in headers (Peter Steinberger, Mattt Thompson)
Fix potential premature deallocation of _skippedCharacterSet (Tom Wanielista, Mattt Thompson)
Fix potential issue in
setOutputStream
by closing any existingoutputStream
(Mattt Thompson)Fix filename in AFHTTPClient header (Steven Fisher)
Fix documentation for UIImageView+AFNetworking (Mattt Thompson)
Fix HTTP multipart form format, which caused issues with Tornado web server (Matt Chen)
Fix
AFHTTPClient
to not append empty data into multipart form data (Jon Parise)Fix URL encoding normalization to not conditionally escape percent-encoded strings (João Prado Maia, Kendall Helmstetter Gelner, @cysp, Mattt Thompson)
Fix
AFHTTPClient
documentation reference ofHTTPRequestOperationWithRequest:success:failure
(Shane Vitarana)Add
AFURLRequestOperation -setRedirectResponseBlock:
(Kevin Harwood)Fix
AFURLConnectionOperation
compilation error by conditionally importing UIKit framework (Steven Fisher)Fix issue where image processing block is not called correctly with success block in
AFImageRequestOperation
(Sergey Gavrilyuk)Fix leaked dispatch group in batch operations (@andyegorov, Mattt Thompson)
Fix support for non-LLVM compilers in
AFNetworkActivityIndicatorManager
(Abraham Vegh, Bill Williams, Mattt Thompson)Fix AFHTTPClient to not add unnecessary data when constructing multipart form request with nil parameters (Taeho Kim)
-
v0.9.2 Changes
April 25, 2012Add thread safety to
AFNetworkActivityIndicator
(Peter Steinberger, Mattt Thompson)Document requirement of available JSON libraries for decoding responses in
AFJSONRequestOperation
and parameter encoding inAFHTTPClient
(Mattt Thompson)Fix
AFHTTPClient
parameter encoding (Mattt Thompson)Fix
AFJSONEncode
andAFJSONDecode
to useSBJsonWriter
and 📜SBJsonParser
instead ofNSObject+SBJson
(Oliver Eikemeier)Fix bug where
AFJSONDecode
does not return errors (Alex Michaud)Fix compiler warning for undeclared
AFQueryStringComponentFromKeyAndValueWithEncoding
function (Mattt Thompson)Fix cache policy for URL requests (Peter Steinberger)
Fix race condition bug in
UIImageView+AFNetworking
caused by incorrectly nil-ing request operations (John Wu)Fix reload button in Twitter example (Peter Steinberger)
Improve batched operation by deferring execution of batch completion block until all component request completion blocks have finished (Patrick Hernandez, Kevin Harwood, Mattt Thompson)
Improve performance of image request decoding by dispatching to background queue (Mattt Thompson)
Revert
AFImageCache
to cache image objects rather thanNSPurgeableData
(Tony Million, Peter Steinberger, Mattt Thompson)Remove unnecessary KVO
willChangeValueForKey:
/didChangeValueForKey:
calls (Peter Steinberger)Remove unnecessary @private ivar declarations in headers (Peter Steinberger, Mattt Thompson)
Remove @try-@catch block wrapping network thread entry point (Charles T. Ahn)
-
v0.9.1 Changes
March 19, 2012Create Twitter example application (Mattt Thompson)
Add support for nested array and dictionary parameters for query string and form-encoded requests (Mathieu Hausherr, Josh Chung, Mattt Thompson)
Add
AFURLConnectionOperation -setCacheResponseBlock:
, which allows the behavior of theNSURLConnectionDelegate
method-connection:willCacheResponse:
to be overridden without subclassing (Mattt Thompson)Add
_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_
macros for NSURLConnection authentication delegate methods (Mattt Thompson)Add properties for custom success / failure callback queues (Peter Steinberger)
Add notifications for network reachability changes to
AFHTTPClient
(Mattt Thompson)Add
AFHTTPClient -patchPath:
convenience method (Mattt Thompson)Add support for NextiveJson (Adrian Kosmaczewski)
Improve network reachability checks (C. Bess)
Improve NSIndexSet formatting in error strings (Jon Parise)
Document crashing behavior in iOS 4 loading a file:// URL (Mattt Thompson)
Fix crash caused by
AFHTTPClient -cancelAllHTTPOperationsWithMethod:
not checking operation to be instance ofAFHTTPRequestOperation
(Mattt Thompson)Fix crash caused by passing
nil
URL in requests (Sam Soffes)Fix errors caused by connection property not being nil'd out after an operation finishes (Kevin Harwood, @zdzisiekpu)
Fix crash caused by passing
NULL
error pointer when settingNSInvocation
inAFJSONEncode
andAFJSONDecode
(Tyler Stromberg)Fix batch operation completion block returning on background thread (Patrick Hernandez)
Fix documentation for UIImageView+AFNetworking (Dominic Dagradi)
Fix race condition caused by
AFURLConnectionOperation
being cancelled on main thread, rather than network thread (Erik Olsson)Fix
AFURLEncodedStringFromStringWithEncoding
to correctly handle cases where % is used as a literal rather than as part of a percent escape code (Mattt Thompson)Fix missing comma in
+defaultAcceptableContentTypes
forAFImageRequestOperation
(Michael Schneider)
-
v0.9.0 Changes
January 23, 2012Add thread-safe behavior to
AFURLConnectionOperation
(Mattt Thompson)Add batching of operations for
AFHTTPClient
(Mattt Thompson)Add authentication challenge callback block to override default implementation of
connection:didReceiveAuthenticationChallenge:
inAFURLConnectionOperation
(Mattt Thompson)Add
_AFNETWORKING_PREFER_NSJSONSERIALIZATION_
, which, when defined, short-circuits the standard preference ordering used inAFJSONEncode
andAFJSONDecode
to useNSJSONSerialization
when available, falling back on third-party-libraries. (Mattt Thompson, Shane Vitarana)Add custom
description
forAFURLConnectionOperation
andAFHTTPClient
(Mattt Thompson)Add
text/javascript
to default acceptable content types forAFJSONRequestOperation
(Jake Boxer)Add
imageScale
property to change resolution of images constructed from cached data (Štěpán Petrů)Add note about third party JSON libraries in README (David Keegan)
AFQueryStringFromParametersWithEncoding
formatsNSArray
values in the formkey[]=value1&key[]=value2
instead ofkey=(value1,value2)
(Dan Thorpe)AFImageRequestOperation -responseImage
on OS X usesNSBitmapImageRep
to determine the correct pixel dimensions of the image (David Keegan)AFURLConnectionOperation
connection
has memory management policyassign
to avoid retain cycles caused byNSURLConnection
retaining its delegate (Mattt Thompson)AFURLConnectionOperation
calls super implementation for-isReady
, following the guidelines forNSOperation
subclasses (Mattt Thompson)UIImageView -setImageWithURL:
and related methods call success callback after setting image (Cameron Boehmer)Cancel request if an authentication challenge has no suitable credentials in
AFURLConnectionOperation -connection:didReceiveAuthenticationChallenge:
(Jorge Bernal)Remove exception from
multipartFormRequestWithMethod:path:parameters:constructing BodyWithBlock:
raised when certain HTTP methods are used. (Mattt Thompson)Remove
AFImageCache
from public API, moving it into private implementation ofUIImageView+AFNetworking
(Mattt Thompson)Mac example application makes better use of AppKit technologies and conventions (Mattt Thompson)
Fix issue with multipart form boundaries in
AFHTTPClient -multipartFormRequestWithMethod:path:parameters:constructing BodyWithBlock:
(Ray Morgan, Mattt Thompson, Sam Soffes)Fix "File Upload with Progress Callback" code snippet in README (Larry Legend)
Fix to SBJSON invocations in
AFJSONEncode
andAFJSONDecode
(Matthias Tretter, James Frye)Fix documentation for
AFHTTPClient requestWithMethod:path:parameters:
(Michael Parker)Fix
Content-Disposition
headers used for multipart form construction (Michael Parker)Add network reachability status change callback property to
AFHTTPClient
. (Mattt Thompson, Kevin Harwood)Fix exception handling in
AFJSONEncode
andAFJSONDecode
(David Keegan)Fix
NSData
initialization with string inAFBase64EncodedStringFromString
(Adam Ernst, Mattt Thompson)Fix error check in
appendPartWithFileURL:name:error:
(Warren Moore, Baldoph, Mattt Thompson)Fix compiler warnings for certain configurations (Charlie Williams)
Fix bug caused by passing zero-length
responseData
to response object initializers (Mattt Thompson, Serge Paquet)