Skip to content

Commit

Permalink
add public access to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tarruk committed Jan 24, 2023
1 parent fcfa946 commit dba18ed
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

```ruby

pod 'RSSwiftNetworking', '~> 1.1.4'
pod 'RSSwiftNetworking', '~> 1.1.5'

```

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion RSSwiftNetworking.podspec
Original file line number Diff line number Diff line change
@@ -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.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

extension JSONDecoder {

convenience init(decodingConfig: DecodingConfiguration) {
public convenience init(decodingConfig: DecodingConfiguration) {
self.init()

dateDecodingStrategy = decodingConfig.dateStrategy
Expand Down
2 changes: 1 addition & 1 deletion Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct APIEndpoint: Endpoint {
endpoint.requestURL
}

public var method: Network.HTTPMethod {
public var method: Network.HTTPMethod {
endpoint.method
}

Expand Down
12 changes: 6 additions & 6 deletions Sources/RSSwiftNetworking/Types/Network/Network.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
}

}

0 comments on commit dba18ed

Please sign in to comment.