TRON v5.3.0 Release Notes
Release Date: 2020-10-22 // over 2 years ago-
➕ Added
- Ability to modify
URLRequests
before it's adapted and sent:
tron.codable .request("status") .modifyRequest { $0.httpShouldHandleCookies = false }
This feature uses Alamofire.RequestModifier closure, that can also be set without DSL on request instance directly:
let request : APIRequest<Post,Empty> = tron.codable.request("posts") request.requestModifier = { urlRequest in urlRequest.httpShouldHandleCookies = false }
- Ability to modify
Previous changes from v5.2.0
-
➕ Added
- 👍 Combine support on supported platforms through
publisher()
method onAPIRequest
,UploadAPIRequest
,DownloadAPIRequest
. APIError.isCancelled
property, that tells, whether request, that errored, was cancelled by sender.
🔄 Changed
Alamofire.ParameterEncoding
,JSONEncoding
andURLEncoding
are now exposed through TRON API and don't require importing Alamofire to use.
🗄 Deprecated
- 🗄
NetworkActivityPlugin
is deprecated on iOS 13 and higher, becauseUIApplication.isNetworkActivityIndicatorVisible
property it has been switching is deprecated on iOS 13 and higher.
- 👍 Combine support on supported platforms through