TRON v5.3.0 Release Notes
Release Date: 2020-10-22 // almost 3 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