This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
2.6.0
2.6.0 (08-18-2015)
Released on Tuesday, August 18th, 2015. All issues associated with this milestone can be found using this filter.
Important Upgrade Notes
Please note the following API/project changes have been made:
- iOS 6 support has now been removed from the podspec. Note that iOS 6 support has not been removed explicitly from the project, but it will be removed in a future update.
- Full Certificate Chain Validation has been removed from
AFSecurityPolicy
. As discussed in #2744, there was no documented security advantage to pinning against an entire certificate chain. If you were using full certificate chain, please determine and select the most ideal certificate in your chain to pin against.- Implemented by Kevin Harwood in #2856.
- The request url will now be returned by the
UIImageView
category if the image is returned from cache. In previous releases, both the request and the response were nil. Going forward, only the response will be nil.- Implemented by Chris Gibbs in #2771.
- Support for App Extension Targets is now baked in using
NS_EXTENSION_UNAVAILABLE_IOS
. You no longer need to defineAF_APP_EXTENSIONS
in order to include code in a extension target. - This release now supports watchOS 2.0, which relys on target conditionals that are only present in Xcode 7 and iOS 9/watchOS 2.0/OS X 10.10. If you install the library using CocoaPods, AFNetworking will define these target conditionals for on older platforms, allowing your code to complile. If you do not use Cocoapods, you will need to add the following code your to PCH file.
#ifndef TARGET_OS_IOS
#define TARGET_OS_IOS TARGET_OS_IPHONE
#endif
#ifndef TARGET_OS_WATCH
#define TARGET_OS_WATCH 0
#endif
- This release migrates query parameter serialization to model AlamoFire and adhere to RFC standards. Note that
/
and?
are no longer encoded by default.- Implemented by Kevin Harwood in #2908.
Note that support for NSURLConnection
based API's will be removed in a future update. If you have not already done so, it is recommended that you transition to the NSURLSession
APIs in the very near future.
Added
- Added watchOS 2.0 support.
AFNetworking
can now be added to watchOS targets using CocoaPods.- Added by Kevin Harwood in #2837.
- Added nullability annotations to all of the header files to improve Swift interoperability.
- Added by Frank LSF and Kevin Harwood in #2814.
- Converted source to Modern Objective-C Syntax.
- Implemented by Matt Shedlick and Kevin Harwood in #2688.
- Improved memory performance when download large objects.
- Fixed by Gabe Zabrino and Kevin Harwood in #2672.
Fixed
- Fixed a crash related for objects that observe notifications but don't properly unregister.
- Fixed by Kevin Harwood and bnickle in #2741.
- Fixed a race condition crash that occured with
AFImageResponseSerialization
.- Fixed by Paulo Ferreria and Kevin Harwood in #2815.
- Fixed an issue where tests failed to run on CI due to unavailable simulators.
- Fixed by Kevin Harwood in #2834.
- Fixed "method override not found" warnings in Xcode 7 Betas
- Removed Duplicate Import and UIKit Header file.
- Fixed by diehardest in #2813
- Removed the ability to include duplicate certificates in the pinned certificate chain.
- Fixed by Kevin Harwood in #2756.
- Fixed potential memory leak in
AFNetworkReachabilityManager
.- Fixed by Julien Cayzac in #2867.
Documentation Improvements
- Clarified best practices for Reachability per Apple recommendations.
- Fixed by Steven Fisher in #2704.
- Added
startMonitoring
call to the Reachability section of the README- Added by Jawwad Ahmad in #2831.
- Fixed documentation error around how
baseURL
is used for reachability monitoring.- Fixed by Kevin Harwood in #2761.
- Numerous spelling corrections in the documentation.
- Fixed by Antoine Cœur in #2732 and #2898.