Skip to content

Commit

Permalink
Merge pull request #15 from rootstrap/feature/add-usd-usdz-mimetype
Browse files Browse the repository at this point in the history
Added usd & usdz mimeTypes
  • Loading branch information
tarruk authored Jun 6, 2023
2 parents 00070af + 1c956b7 commit 5a5ee1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.5'
pod 'RSSwiftNetworking', '~> 1.1.6'

```

Expand All @@ -26,7 +26,7 @@ pod 'RSSwiftNetworking', '~> 1.1.5'
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.5
github "rootstrap/RSSwiftNetworking" ~> 1.1.6
```

#### 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.5'
s.version = '1.1.6'
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
4 changes: 4 additions & 0 deletions Sources/RSSwiftNetworking/Models/MultipartMedia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public enum MimeType: String {
case avi = "video/avi"
case json = "application/json"

case usd, usdz = "application/octet-stream"

func fileExtension() -> String {
switch self {
case .bmp: return ".bmp"
Expand All @@ -27,6 +29,8 @@ public enum MimeType: String {
case .mpeg: return ".mpeg"
case .avi: return ".avi"
case .json: return ".json"
case .usd: return ".usd"
case .usdz: return ".usdz"
default: return ".jpg"
}
}
Expand Down

0 comments on commit 5a5ee1f

Please sign in to comment.