Added method swizzling for default session configuration, is now compatible with AFNetworking#14
Added method swizzling for default session configuration, is now compatible with AFNetworking#14Amindv1 wants to merge 3 commits intocapitalone:masterfrom
Conversation
|
@Amindv1 Thanks for the pulling request to enhance the tool and sorry that I was not looking into this earlier due to vacations. I looked at the pull request and have the following preliminary feedbacks:
|
|
@JinlianWang I'll have to take a look at it later I've been busy with other projects at the moment. |
|
Hey @Amindv1 curious if you were thinking of revisiting this PR, as I definitely think it's very valuable when working with libraries that don't expose the |
|
@loudmouth It's not likely anytime soon you can just fork off my repo and use it, everything works the only reason the PR isnt merged is because of the above mentioned things. |
Added isRecording check fo swizzling.
I added method swizzling so we add the SWprotocol to the NSURLProtocols default session every time it gets initialized. Tried to keep same coding style. Also added a isEnabled function to the SWHttpTrafficRecorder class that enables/disables the recorder for a provided session configuration.