-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert AnyPublisher to async/await (#183)
* update code formatting to remove warnings. * convert functions on networking interfaces from AnyPublisher to async throwing functions. (#180) * Update Core Networking Implementation (#181) * remove use of async bridge function * update the core urlsession implementation of send and upload methods of rest service. * remove URLUploadSessionPublisher interface and implementation * update core networking implementation based on the async await changes made to the networking interfaces. * update unit tests to use new async methods * fix some code formatting issues. * update the url session to use a protocol that is replaceable with a mock * update the url session to use a protocol that is replaceable with a mock * fix the issues with failing polling tests. * update changelog. * some code formatting * cleanup import statement. * restore disable lint rule * Make change log more descriptive. * update podspec file. update changelog. update SmileID.swift file and run pod install in example.
- Loading branch information
Showing
22 changed files
with
372 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import Combine | ||
import Foundation | ||
|
||
protocol RestServiceClient { | ||
func send<T: Decodable>(request: RestRequest) -> AnyPublisher<T, Error> | ||
func multipart<T: Decodable>(request: RestRequest) -> AnyPublisher<T, Error> | ||
func upload(request: RestRequest) -> AnyPublisher<UploadResponse, Error> | ||
func send<T: Decodable>(request: RestRequest) async throws -> T | ||
func multipart<T: Decodable>(request: RestRequest) async throws -> T | ||
func upload(request: RestRequest) async throws -> AsyncThrowingStream<UploadResponse, Error> | ||
} |
Oops, something went wrong.