Skip to content

2.0.0 — Simplified API

Compare
Choose a tag to compare
@AliSoftware AliSoftware released this 17 Oct 22:11
· 703 commits to master since this release
  • Simplified API
    • removed instance methods, no more public sharedInstance: directly call class methods on the OHHTTPStubs class
    • The old and problematic addRequestHandler: method has been deprecated and should not be used anymore. Use stubRequestsPassingTest:withStubResponse: instead, which is more efficient
  • Added API documentation in the headers
  • Remove all internal uses of Apple's private APIs

Be careful: if you forgot to remove your use of OHHTTPStubs and your stubs from the binary you sent to the AppStore, your app would have been rejected by Apple before 2.0.0, as it was using private API (which was a way to make sure not to forget to remove them), but now it would be accepted silently. So don't forget to remove your stubs and OHHTTPStubs from your final binary!