Skip to content

Releases: AliSoftware/OHHTTPStubs

Fixed initializers KVO risk

22 Jul 20:11
Compare
Choose a tag to compare
  • Fix #66: Use the ivar directly in initialization

Avoid Content-Length header override

22 Jul 20:14
Compare
Choose a tag to compare
  • #61: Fix broken link in README
  • #62: Don't override Content-Length header when already set

Fixing some crashes

22 Jul 20:16
Compare
Choose a tag to compare
  • Fixing a crash when using very very long data #57/#59
  • Fixing issue #51 regarding a probable race condition when stubs were removed before the request has finished
  • Shorten the README.md file and moved all the usage examples in a dedicated wiki page to avoid a endless and frightening README

OHHTTPStubsDescriptor protocol now inherits NSObject protocol

17 Jan 08:43
Compare
Choose a tag to compare

Only change in the API:

  • @protocol OHHTTPStubsDescriptor has been changed to @protocol OHHTTPStubsDescriptor <NSObject>.

Fixing #47 : Stubs not called when using Application/UI Tests

09 Jan 20:57
Compare
Choose a tag to compare

Fixing issue #47 when stubs were not called, especially when the OHHTTPStubs pod were loaded both by the application AND the test target in the Podfile (thus loaded in both the app and test bundle).

See also the dedicated article: A tricky case with Application Tests.


In details:

  • NSURLSessionConfiguration 's swizzling (to add automatic support of OHHTTPStubs to NSURLSession) is now done in the +load method of an NSURLSessionConfiguration category, to be sure it is loaded (and swizzled) only once, even if OHHTTPStubs is loaded by two different bundles.
  • The stubs activation of NSURLSessionConfiguration no longer uses objc_getClass but uses a call to the OHHTTPStubs class instead, which ensure that it uses the correct OHHTTPStubs class in the current bundle instead of always using the one loaded from the main bundle.

Mac framework target

09 Jan 20:44
Compare
Choose a tag to compare
  • Adding Mac framework & Mac Test Target (#44)
  • Adding known limitations in README

3.0.2

17 Oct 22:02
Compare
Choose a tag to compare
  • Fixed issue with cookies when request.URL is nil (#39)
  • Fixed missing -ObjC flag in Unit Tests target (that made it unable to call category methods)
  • Fixed Unit Tests on iOS6 (NSURLSession-related Unit Tests now only executed when run on iOS7+ or OSX10.9+, and skipped if targeted for an earlier OS version, as NSURLSession was not available then)

3.0.1

17 Oct 22:04
Compare
Choose a tag to compare
  • Fixed issue with NSURLSessionConfiguration auto-swizzling (#37 & #38)

Now OHHTTPStubs automagically works with NSURLSessionConfiguration without the need to enable it for every NSURLSessionConfiguration before creating the NSURLSession: the defaultSessionConfiguration and ephemeralSessionConfiguration are now preconfigured automatically to work with OHHTTPStubs)

3.0.0 — Removed deprecated API

10 Oct 10:01
Compare
Choose a tag to compare
  • Removed deprecated methods.

The Old API has now totally disappeared, leaving only a clean and simple API without the spam due to old deprecated methods.

Note: If you have already removed the calls to all OHHTTPStubs deprecated API in your code, you can switch to this 3.0.0 version without any further changes in your code.


This release drops the deprecated API that was still around and was obsolete since the new API introduced in 2.x.

2.4.0 — Added support for NSURLSession

10 Oct 09:59
Compare
Choose a tag to compare

This release adds support for the new NSURLSession and related classes (NSURLSessionDataTask) and the new way appeared in iOS7 to perform requests.

(It also adds support for AFNetworking 2.0 when using NSURLSession with this framework)