Skip to content

Commit

Permalink
Merge pull request #15 from HelioMesquita/feature/update_project
Browse files Browse the repository at this point in the history
Await/Async network layer
Remove cocoapods and add SPM
Improve xcodegen file
Fix unit testing
  • Loading branch information
HelioMesquita committed Apr 2, 2024
2 parents c2c0b1e + dee461f commit 8784cd6
Show file tree
Hide file tree
Showing 84 changed files with 1,132 additions and 1,793 deletions.
2 changes: 0 additions & 2 deletions .bundle/config

This file was deleted.

4 changes: 0 additions & 4 deletions .codecov.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .slather.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Gemfile

This file was deleted.

185 changes: 0 additions & 185 deletions Gemfile.lock

This file was deleted.

9 changes: 9 additions & 0 deletions Infrastructure/BuilderProviderProtocol.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Foundation

public protocol BuilderProviderProtocol {

associatedtype ResponseType: RequestDecodable
associatedtype ModelType

func build(response: ResponseType) throws -> ModelType
}
50 changes: 0 additions & 50 deletions Infrastructure/Logger.swift

This file was deleted.

1 change: 1 addition & 0 deletions Infrastructure/RequestError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public enum RequestError: Int, Error, LocalizedError, Equatable {
case unauthorized = 401
case forbidden = 403
case notFound = 404
case serverError = 500

public var localizedDescription: String {
return Text(rawValue: String(describing: self))?.value ?? ""
Expand Down
Loading

0 comments on commit 8784cd6

Please sign in to comment.