Releases: AliSoftware/OHHTTPStubs
Releases · AliSoftware/OHHTTPStubs
Improvements in Swift API
- Annotated the library with nullability attributes to generate a better API when used in Swift
- Migrated the path utility macros to functions in
OHPathHelpers.h
, for Swift compatibility (#100). - Added a complete Swift Demo Project (#88)
- Removed the
XCTestExpectation
subspec that was added for Xcode 5 support — Now that Xcode 6 is widely adopted, you shouldn't need this anymore.
Fix for HTTP status 300
Carthage support, better use of CocoaPods, better Travis-CI
- Added Carthage support
- Splitted the Xcode projects for more clarity (one dedicated to build the lib and run Unit Tests, and one for the Demo)
- Got rid of the
git submodule
used for Unit Tests against AFNetworking — it is now imported using CocoaPods and only for the lib's Unit Tests targets (@corinnekrych, #90) - Improved Travis-CI integration. We now use a build matrix to have paralellized and independant builds for each scheme (iOS Static Lib, iOS Dynamic Framework, OSX Framework)
- Fixed #80 again (there was still an issue for people using Xcode 5 & SDK 7.1… if those people still exists)
Fix for Xcode5 users
- Fix headers for people still building with Xcode 5 & SDK 7 (#80)
NS_DESIGNATED_INITIALIZER
- Use
NS_DESIGNATED_INITIALIZER
macro on designated initializer methods (#79)
Fix empty files
- Use
application/json
instead oftext/json
inREADME
's example (#75) - Fixed an issue with empty files (when using
responseWithFileAtPath:statusCode:headers:
but the file at the specified path is empty)
DEFINES_MODULE
- Added
DEFINES_MODULE
Flag to be easily imported in Swift (#74)
(I also moved Travis-CI build system so it now uses xcpretty
instead of xctool
to run Unit Tests)
Fixed stalling
- Fixed issue with the main thread stalling when an
NSException
was raised in the response block - Fixed an issue with
OHHTTPStubs/XCTestExpectation
conditional compilation in Xcode 6.0 & OSX SDK.
(the condition was previously testing available SDKs instead of Xcode version, which led to errors with Xcode 6.0 not having the latest 10.10 SDK yet, but still having theXCTextExpectation
already anyway)
XCTest
- Migrated Unit Tests to XCTest.
- Added
XCTestExpectation
subspec containing my own implementation for Xcode 5 support
Fix iOS8 issue
- Fix issue that made stubs never being called on iOS8 (#65)