Releases: Flipkart/Swifty
Releases · Flipkart/Swifty
Swifty 1.3.3
Swifty 1.3.2
Swifty now exposes network metrics APIs publically.
Swifty 1.3.1
Swifty now handles all 2xx responses as valid responses.
Swifty 1.3.0
Swifty has been upgraded for Swift 5.
Swifty 1.2.1
Swifty has been upgraded for Swift 4.2.
Added
- Adds the
@objc
attribute to all publicly ObjC accessible classes and methods. - Added ability to specify a custom
sessionMetricsDelegate: URLSessionTaskDelegate
in the Swifty initializer to collectURLSessionTaskMetrics
1.2.0-beta-1
• Added support for swift 4.2 with necessary apis exposed to objective-c as well.
Swifty 1.1.1
Swifty now supports attaching multipart form data into requests.
Added
- Adds a new modifier
.multipart()
to attach multipart form data into requests. - The new modifier is can be chained continuously to attach multiple data into requests.
- The encoding of the data is done at the time
.load()
is called, using an internalRequestInterceptor
Swifty 1.1.0
Swifty now supports the Codable
Protocol, plus adds support for Response Mocking
.
Added
- Adds a new
.json(encodable: encoder:)
modifier to attachEncodable
objects into request bodies. - Adds a new method
.loadJSON<T: Decodable>(decodable: decoder:)
to support loadingDecodable
objects from network responses directly. - Adds a new
.mock(withFile: OfType)
modifier to mock responses of requests using files in the main bundle. - Tests for Codable Support & Response Mocking.
Fixed
- The
creationError
property inNetworkResource
is now public, so that it can be utilized by a user's custom extensions.
Swifty 1.0.2
Fixed
- Simpler logic for Query Preservation in
BaseResource
modifiers
Swifty 1.0.1
Fixed
- Improved Query Preservation in
BaseResource
modifiers