fixing some warnings
Caching all images for 7 days
adding access to current reachability status.. also reverting last change, as it can be effected by simply changing #defines in MKNetworkKit.h
retaing dependent operations in a queue, as calling their success blocks might cause a problem otherwise.
1. Making cacheMemoryCost a property, which can be set when an engine is created, instead of having to subclass MKNetworkEngine..
2. Refactoring caching logic, so that responses are written immediately to disk, and also memory cache can contain objects other than NSData (in case we want to cache processed images..
posting OperationCountChanged notification after updating networkActivityIndicator state, so that the app gets a chance to modify the state as required
synchronized access to memoryCache. Also fixing a memoryCache related cache.. when the image is nil
Adding autoreleasepools around dispatch block, and making sure we don't run freezeOperations
cleaning up the operation execution logic..
basically deciding when to run the operation on the network.. it was a dirty if else block
this fixes the array enumeration crash
https://rink.hockeyapp.net/manage/apps/13832/app_versions/34/crash_reasons/1951186
cc @nessup, essentially MKNetworkOperation does maintain state properly. However all its callbacks (from NSURLConnection) happen on the main thread, but updateHandlersFromOperation was called on a different thread, which caused the race condition. It was not happening in the old app, as in the old app updateHandlersFromOperation was called on main thread. So I am pretty sure that is the problem.
Minor fixes from rebasing.. Also enabling tests to run locally..