Network abstraction layer written in Swift.
NetworkLoggerPlugin.default
and NetworkLoggerPlugin.verbose
to conveniently access the default plugins. #2095 by @sunshinejr.Hashable
&& Equatable
implementation of Endpoint
since it was returning false positives. #2101 by @sunshinejr.MultiPartFormData
is now Hashable
. #2101 by @sunshinejr.AccessTokenPlugin
now uses TargetType
, instead of AuthorizationType
, in the closure to determine the token. Full MultiTarget
integration added as well. #2046 by @Coder-ZJQ.Target.sampleData
is now automatically implemented as Data()
with default protocol extension. #2015 by jdisho.RxSwift
is now 6.0. #2120 by @peagasilva.trackInflights
option in certain circumstances would return a cached response for an endpoint that's not really the same. #2101 by @sunshinejr.willSend(_:target:)
from being fired. #2192 by anton-plebanovich.A minor patch release with numerous doc changes, and support for getting built through carthage as a xcframework
This is an early-release version of Moya 15. This includes minimum Swift version bump to 5.1 as well as bringing back Combine support! It's an alpha release since there might be slight breaking changes to the Combine extensions if we find some problems and also there might be improvements that are waiting in PRs.
Thanks to @MaxDesiatov @BasThomas @LucianoPAlmeida @amaurydavid and everyone else that helped in the newest release! 🚀
Moya 14.0.0 is finally released! 🚀 This is a huge amount of work and so I wanted to thank all contributors, especially @amaurydavid, @LucianoPAlmeida, @larryonoff, @hasankose and @fredpi!
Result
dependency in favor of Result
type introduced in Swift 5NetworkLoggerPlugin
have been reworked to allow more customization about the logged request's componentsRequestType
now has sessionHeaders
property! These are the headers that are added when the request is added to a sessionAccessTokenPlugin
the token closure now takes an AuthorizationType
as parameter and AuthorizationType.none
has been removed in favor of using AuthorizationType?
MultiTarget
now implements AccessTokenAuthorizable
so that the inner target's authorizationType
is correctly returned to the AccessTokenPlugin
when requestedSwiftPM
testing using swift test
and releasing using swift run rocket
which allows us to remove testing dependencies for SwiftPM
releasesSee migration guides or create an issue and let us help you out :)
Another update while we wait for Alamofire to be stable. This time one fix, one small update - hope you will like it! 🚀
Note: Unfortunately we introduced the breaking change with the update, but this was a pretty big gain in terms of the plugin usage so we decided to move forward with it. Make sure you see the migration guide to see how you can migrate easily.
AccessTokenPlugin
, the token closure now takes a AuthorizationType
as parameter and AuthorizationType.none
has been removed in favor of using AuthorizationType?
. #1969 by @amaurydavid.Only bumping Alamofire version, no changes to code this time 👍
Alamofire
is now 5.0.0-rc.3. #1944 by @sunshinejr.Unfortunately we had to remove Combine for now to keep Xcode 10 compatibility 😭 You might want to update to that version ASAP as it's fixing crashes on release builds...
A lot of fixes in this one! 👷
NetworkLoggerPlugin
. #1916 by @sunshinejr.NetworkLoggerPlugin
. #1916 by @sunshinejr.URLRequest
changes (created by plugins) when stubbed. #1921 by @sunshinejr.