Skip to content

Commit f9b6f88

Browse files
Merge pull request #35 from apivideo/fix-publishedAt-type
Fix publishedAt type
2 parents 0fa5e8b + 74e5af7 commit f9b6f88

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
44bc31782e7fd372028f532b784b171b30b9d4f4dc62f35672daa9f12225a939
1+
83a284189e8563226661d57e8ab4ca3a79c4cf6b98a313c193e42cd7ad04c433

ApiVideoUploader.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Pod::Spec.new do |s|
44
s.osx.deployment_target = '10.12'
55
s.tvos.deployment_target = '10.0'
66
s.watchos.deployment_target = '3.0'
7-
s.version = '0.1.4'
8-
s.source = { :git => 'https://github.com/apivideo/api.video-ios-uploader', :tag => 'v0.1.4' }
7+
s.version = '0.1.5'
8+
s.source = { :git => 'https://github.com/apivideo/api.video-ios-uploader', :tag => 'v0.1.5' }
99
s.authors = { 'Ecosystem Team' => 'ecosystem@api.video' }
1010
s.license = { :type => 'MIT' }
1111
s.homepage = 'https://docs.api.video'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [0.1.5] - 2022-04-21
5+
- Fix `video.publishedAt` type
6+
47
## [0.1.4] - 2022-03-11
58
- Add Origin identification headers
69

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ It allows you to upload videos in two ways:
3939
Specify it in your `Cartfile`:
4040

4141
```
42-
github "apivideo/api.video-ios-uploader" ~> 0.1.4
42+
github "apivideo/api.video-ios-uploader" ~> 0.1.5
4343
```
4444

4545
Run `carthage update`
4646

4747
### CocoaPods
4848

49-
Add `pod 'ApiVideoUploader', '0.1.4'` in your `Podfile`
49+
Add `pod 'ApiVideoUploader', '0.1.5'` in your `Podfile`
5050

5151
Run `pod install`
5252

Sources/APIs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ApiVideoUploader {
1515

1616
public static var apiKey: String? = nil
1717
public static var basePath = "https://ws.api.video"
18-
internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios-uploader:0.1.4"]
18+
internal static var customHeaders:[String: String] = ["AV-Origin-Client": "ios-uploader:0.1.5"]
1919
private static var chunkSize: Int = 50 * 1024 * 1024
2020
internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
2121
internal static var credential = ApiVideoCredential()

Sources/Models/Video.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct Video: Codable, Hashable {
2121
/** A description for the video content. */
2222
public var description: String?
2323
/** The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. */
24-
public var publishedAt: String?
24+
public var publishedAt: Date?
2525
/** The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. */
2626
public var updatedAt: Date?
2727
/** One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. */
@@ -39,7 +39,7 @@ public struct Video: Codable, Hashable {
3939
/** This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video. */
4040
public var mp4Support: Bool?
4141

42-
public init(videoId: String, createdAt: Date? = nil, title: String? = nil, description: String? = nil, publishedAt: String? = nil, updatedAt: Date? = nil, tags: [String]? = nil, metadata: [Metadata]? = nil, source: VideoSource? = nil, assets: VideoAssets? = nil, playerId: String? = nil, _public: Bool? = nil, panoramic: Bool? = nil, mp4Support: Bool? = nil) {
42+
public init(videoId: String, createdAt: Date? = nil, title: String? = nil, description: String? = nil, publishedAt: Date? = nil, updatedAt: Date? = nil, tags: [String]? = nil, metadata: [Metadata]? = nil, source: VideoSource? = nil, assets: VideoAssets? = nil, playerId: String? = nil, _public: Bool? = nil, panoramic: Bool? = nil, mp4Support: Bool? = nil) {
4343
self.videoId = videoId
4444
self.createdAt = createdAt
4545
self.title = title

docs/Video.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**createdAt** | **Date** | When a video was created, presented in ISO-8601 format. | [optional]
88
**title** | **String** | The title of the video content. | [optional]
99
**description** | **String** | A description for the video content. | [optional]
10-
**publishedAt** | **String** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional]
10+
**publishedAt** | **Date** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional]
1111
**updatedAt** | **Date** | The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. | [optional]
1212
**tags** | **[String]** | One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. | [optional]
1313
**metadata** | [Metadata] | Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. | [optional]

project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ targets:
77
sources: [Sources]
88
info:
99
path: ./Info.plist
10-
version: 0.1.4
10+
version: 0.1.5
1111
settings:
1212
APPLICATION_EXTENSION_API_ONLY: true
1313
scheme: {}

0 commit comments

Comments
 (0)