-
Notifications
You must be signed in to change notification settings - Fork 63
Compatibility with AFNetworking 3 and HTTP/2 #22
base: master
Are you sure you want to change the base?
Conversation
@mattt @kylef @cnoon @kcharwood @wiistriker |
@@ -21,14 +21,14 @@ | |||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |||
// THE SOFTWARE. | |||
|
|||
#import "AFHTTPRequestOperationManager.h" | |||
#import "AFHTTPSessionManager.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably just import AFNetworkings framework header.
#import <AFNetworking/AFNetworking.h>
@kylef Yes, I have fixed it. Thanks. |
|
||
s.dependency 'AFNetworking', '~> 2.1' | ||
s.dependency 'AFNetworking', '> 2.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to lock to ~> 3.0
or perhaps a range of > 2.1
, < 4.0
if AFNetworking 2 should still be supported. Otherwise any breaking changes in AFNetworking 4.0 would break AFJSONRPCClient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code only works with AFNetworking 3.0, It is better to lock it to ~> 3.0.
We can create a branch with current code for AFNetworking 2.0 if anyone uses it.
I have changed it in a new commit.
@kylef
Any chance of getting this checked in? |
Using AFHTTPSessionManager instead of AFHTTPRequestOperation so that we can use AFJSONRPCClient with AFNetworking 3 and send JSON-RPC request over HTTP/2