diff --git a/README.md b/README.md index 38610e6..d5b3ce6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ```ruby -pod 'RSSwiftNetworking', '~> 1.1.4' +pod 'RSSwiftNetworking', '~> 1.1.5' ``` @@ -26,7 +26,7 @@ pod 'RSSwiftNetworking', '~> 1.1.4' Add the following line to your `Cartfile` and follow the [installation instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application). ``` -github "rootstrap/RSSwiftNetworking" ~> 1.1.4 +github "rootstrap/RSSwiftNetworking" ~> 1.1.5 ``` #### 3. Swift Package Manager diff --git a/RSSwiftNetworking.podspec b/RSSwiftNetworking.podspec index 3457b64..ae05439 100644 --- a/RSSwiftNetworking.podspec +++ b/RSSwiftNetworking.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RSSwiftNetworking' - s.version = '1.1.4' + s.version = '1.1.5' s.summary = 'A flexible network layer API written in Swift.' s.description = 'A flexible network layer API written in Swift. Compatible with iOS, iPadOS and tvOS.' diff --git a/Sources/RSSwiftNetworking/Extensions/JSONDecoder+DecodingConfiguration.swift b/Sources/RSSwiftNetworking/Extensions/JSONDecoder+DecodingConfiguration.swift index 6898800..dc39368 100644 --- a/Sources/RSSwiftNetworking/Extensions/JSONDecoder+DecodingConfiguration.swift +++ b/Sources/RSSwiftNetworking/Extensions/JSONDecoder+DecodingConfiguration.swift @@ -2,7 +2,7 @@ import Foundation extension JSONDecoder { - convenience init(decodingConfig: DecodingConfiguration) { + public convenience init(decodingConfig: DecodingConfiguration) { self.init() dateDecodingStrategy = decodingConfig.dateStrategy diff --git a/Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift b/Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift index d78213c..845d053 100644 --- a/Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift +++ b/Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift @@ -14,7 +14,7 @@ public struct APIEndpoint: Endpoint { endpoint.requestURL } - public var method: Network.HTTPMethod { + public var method: Network.HTTPMethod { endpoint.method } diff --git a/Sources/RSSwiftNetworking/Types/Network/Network.swift b/Sources/RSSwiftNetworking/Types/Network/Network.swift index bab44f8..67ab8e3 100644 --- a/Sources/RSSwiftNetworking/Types/Network/Network.swift +++ b/Sources/RSSwiftNetworking/Types/Network/Network.swift @@ -16,7 +16,7 @@ public enum Network { /// Meaningful HTTP status codes for the API. public enum StatusCode { - static let unauthorized = 401 + public static let unauthorized = 401 } /// Represents an APIClient response @@ -48,11 +48,11 @@ public enum Network { /// Defines the Content Types to be used in HTTP requests public enum ContentType { - static let plainText = "text/plain" - static let applicationURLForm = "application/x-www-form-urlencoded" - static let applicationJSON = "application/json" - static let applicationXML = "application/xml" - static let multipartForm = "multipart/form-data" + public static let plainText = "text/plain" + public static let applicationURLForm = "application/x-www-form-urlencoded" + public static let applicationJSON = "application/json" + public static let applicationXML = "application/xml" + public static let multipartForm = "multipart/form-data" } }