Skip to content

Commit 6ec99c9

Browse files
authored
Prepare 4.0.0. (AFNetworking#4527)
1 parent c9d0684 commit 6ec99c9

File tree

3 files changed

+81
-8
lines changed

3 files changed

+81
-8
lines changed

AFNetworking/AFURLSessionManager.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ static dispatch_group_t url_session_manager_completion_group() {
8585

8686
typedef void (^AFURLSessionTaskCompletionHandler)(NSURLResponse *response, id responseObject, NSError *error);
8787

88-
8988
#pragma mark -
9089

9190
@interface AFURLSessionManagerTaskDelegate : NSObject <NSURLSessionTaskDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate>

CHANGELOG.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,85 @@ All notable changes to this project will be documented in this file.
44

55
---
66

7+
## [4.0.0](https://github.com/AFNetworking/AFNetworking/releases/tag/4.0.0) (03/29/2020)
8+
Released on Sunday, March 29, 2020. All issues associated with this milestone can be found using this [filter](https://github.com/AFNetworking/AFNetworking/milestone/16?closed=1).
9+
10+
#### Added
11+
* Notificate when a downloaded file has been moved successfully.
12+
* Implemented by xingheng in [#4393](https://github.com/AFNetworking/AFNetworking/pull/4393).
13+
* Specific error for certificate pinning failure.
14+
* Implemented by 0xced in [#3425](https://github.com/AFNetworking/AFNetworking/pull/3425).
15+
* `WKWebView` extensions.
16+
* Implemented by tjanela in [#4439](https://github.com/AFNetworking/AFNetworking/pull/4439).
17+
* Automatic location of certificates in the main bundle for certificate pinning.
18+
* Implemented by 0xced in [#3752](https://github.com/AFNetworking/AFNetworking/pull/3752).
19+
* User-Agent support for tvOS.
20+
* Implemented by ghking in [#4014](https://github.com/AFNetworking/AFNetworking/pull/4014).
21+
* Ability for `AFHTTPSessionManager` to recreate its underlying `NSURLSession`.
22+
* Implemented by Kaspik in [#4256](https://github.com/AFNetworking/AFNetworking/pull/4256).
23+
* Ability to set HTTP headers per request.
24+
* Implemented by stnslw in [#4113](https://github.com/AFNetworking/AFNetworking/pull/4113).
25+
* Ability to capture `NSURLSessionTaskMetrics`.
26+
* Implemented by Caelink in [#4237](https://github.com/AFNetworking/AFNetworking/pull/4237).
27+
28+
#### Updated
29+
* `dataTaskWithHTTPMethod` to be public.
30+
* Implemented by smartinspereira in [#4007](https://github.com/AFNetworking/AFNetworking/pull/4007).
31+
* Reachability notification to include the instance which issued the notification.
32+
* Implemented by LMsgSendNilSelf in [#4051](https://github.com/AFNetworking/AFNetworking/pull/4051).
33+
* `AFJSONObjectByRemovingKeysWithNullValues` to be public.
34+
* Implemented by ashfurrow in [#4051](https://github.com/AFNetworking/AFNetworking/pull/4051).
35+
* `AFJSONObjectByRemovingKeysWithNullValues` to remove `NSNull` values from `NSArray`s.
36+
* Implemented by ashfurrow in [#4052](https://github.com/AFNetworking/AFNetworking/pull/4052).
37+
38+
#### Changed
39+
* Automated CI to GitHub Actions.
40+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
41+
42+
#### Fixed
43+
* Explicit `NSSecureCoding` support.
44+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
45+
* Deprecated API usage on Catalyst.
46+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
47+
* Nullability annotations.
48+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
49+
* `AFImageDownloader` to more accurately cancel downloads.
50+
* Implemented by kinarobin in [#4407](https://github.com/AFNetworking/AFNetworking/pull/4407).
51+
* Double KVO notifications in `AFNetworkActivityManager`.
52+
* Implemented by kinarobin in [#4406](https://github.com/AFNetworking/AFNetworking/pull/4406).
53+
* Availability annotations around `NSURLSessionTaskMetrics`.
54+
* Implemented by ElfSundae in [#4516](https://github.com/AFNetworking/AFNetworking/pull/4516).
55+
* Issues with `associated_object` and subclasses.
56+
* Implemented by welcommand in [#3872](https://github.com/AFNetworking/AFNetworking/pull/3872).
57+
* Memory leak in example application.
58+
* Implemented by svoit in [#4196](https://github.com/AFNetworking/AFNetworking/pull/4196).
59+
* Crashes in mulithreaded scenarios and `dispatch_barrier`.
60+
* Implemetned by streeter in [#4474](https://github.com/AFNetworking/AFNetworking/pull/4474).
61+
* Issues with `NSSecureCoding`.
62+
* Implemented by ElfSudae in [#4409](https://github.com/AFNetworking/AFNetworking/pull/4409).
63+
* Code style issues.
64+
* Implemented by svoit in [#4200](https://github.com/AFNetworking/AFNetworking/pull/4200).
65+
* Race condition in `AFImageDownloader`.
66+
* Implemented by bbeversdorf in [#4246](https://github.com/AFNetworking/AFNetworking/pull/4246).
67+
* Coding style issues.
68+
* Implemented by LeeHongHwa in [#4002](https://github.com/AFNetworking/AFNetworking/pull/4002).
69+
70+
#### Removed
71+
* Support for iOS < 9, macOS < 10.10.
72+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
73+
* All previously deprecated APIs.
74+
* Implemented by jshier in [#4523](https://github.com/AFNetworking/AFNetworking/pull/4523).
75+
* Unnecessary `__block` capture.
76+
* Implemented by kinarobin in [#4526](https://github.com/AFNetworking/AFNetworking/pull/4526).
77+
* Workaround for `NSURLSessionUploadTask` creation on iOS 7.
78+
* Implemented by kinarobin in [#4525](https://github.com/AFNetworking/AFNetworking/pull/4525).
79+
* Workaround for safe `NSURLSessionTask` creation on iOS < 8.
80+
* Implemented by kinarobin in [#4401](https://github.com/AFNetworking/AFNetworking/pull/4401).
81+
* `UIWebView` extensions.
82+
* Implemented by tjanela in [#4439](https://github.com/AFNetworking/AFNetworking/pull/4439).
83+
84+
---
85+
786
## [3.2.1](https://github.com/AFNetworking/AFNetworking/releases/tag/3.2.1) (05/04/2018)
887
Released on Friday, May 04, 2018. All issues associated with this milestone can be found using this [filter](https://github.com/AFNetworking/AFNetworking/issues?q=milestone%3A3.2.1+is%3Aclosed).
988

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ AFNetworking is a delightful networking library for iOS, macOS, watchOS, and tvO
1212

1313
Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac.
1414

15-
Choose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did!
16-
1715
## How To Get Started
1816

1917
- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/archive/master.zip) and try out the included Mac and iPhone example apps
@@ -39,7 +37,6 @@ To integrate AFNetworking into your Xcode project using CocoaPods, specify it in
3937
pod 'AFNetworking', '~> 4.0'
4038
```
4139

42-
4340
### Installation with Swift Package Manager
4441

4542
Once you have your Swift package set up, adding AFNetworking as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
@@ -54,19 +51,17 @@ dependencies: [
5451
5552
### Installation with Carthage
5653

57-
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
54+
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate AFNetworking, add the following to your `Cartfile`.
5855

5956
```ogdl
6057
github "AFNetworking/AFNetworking" ~> 4.0
6158
```
6259

63-
Run `carthage` to build the framework and drag the built `AFNetworking.framework` into your Xcode project.
64-
6560
## Requirements
6661

6762
| AFNetworking Version | Minimum iOS Target | Minimum macOS Target | Minimum watchOS Target | Minimum tvOS Target | Notes |
6863
|:--------------------:|:---------------------------:|:----------------------------:|:----------------------------:|:----------------------------:|:-------------------------------------------------------------------------:|
69-
| 4.x | iOS 9 | macOS 10.10 | watchOS 2.0 | tvOS 9.0 | Xcode +9+ is required. |
64+
| 4.x | iOS 9 | macOS 10.10 | watchOS 2.0 | tvOS 9.0 | Xcode 11+ is required. |
7065
| 3.x | iOS 7 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Xcode 7+ is required. `NSURLConnectionOperation` support has been removed. |
7166
| 2.6 -> 2.6.3 | iOS 7 | OS X 10.9 | watchOS 2.0 | n/a | Xcode 7+ is required. |
7267
| 2.0 -> 2.5.4 | iOS 6 | OS X 10.8 | n/a | n/a | Xcode 5+ is required. `NSURLSession` subspec requires iOS 7 or OS X 10.9. |

0 commit comments

Comments
 (0)