Releases: ProVir/WebServiceSwift
Releases · ProVir/WebServiceSwift
Support Swift 5.0
Support Swift 4.2
Added support swift 4.2 and Xcode 10
3.0.0
Fix bugs and update WebServiceMockRequesting
- Rename method
WebService.performRequest
with base requests toWebService.performBaseRequest
. Bug: use requests asWebServiceBaseRequesting
, but requireWebServiceRequesting
with response type. - Fix bug: after finished request it don't removed from list requests in process in
WebService
. - In
WebServiceMockRequesting
return type now genericResultType
in methodresponseHandler()
. - In
WebServiceMockRequesting.createHelper()
method removed identifier parameter. - All
WebService.cancelRequest
andWebServiceRequestProvider.cancelRequest
renamed tocancelRequests
. - Add cancelRequests for Request type (ignore requestKey).
- Change logic
WebServiceRequestProvider.cancelAllRequests
- now cancel only current requests type.
Result Types in Requests, Thread safe, Mock Engine and Providers.
- WebServiceRequesting.requestKey as optional. If Request as Equatable or Hashable, requestKey = request, else nil.
- WebServiceRequesting now is generic protocol and require Result Type.
- WebServiceResponse now is generic and can convert response to concrete type. Closures in WebService now use WebServiceRequesting.ResultType as information for response type.
- WebService class now full thread safe.
- Added WebServiceMockEngine for emulator data from server.
- Support Custom and Request Providers.
Warning!
After update from 2.1 to 2.2 your project compile have errors. Update your code for use 2.2.
Fast update requests: WebServiceRequesting replace to WebServiceBaseRequesting (no generic).
2.1: Support thread queue and dataHandler from box.
- Added DispatchQueue settings.
- Added method dataHandler as universal data processing method for data from server and storage.
- Added CocoaPods and Cartage.