Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 6e83fb9

Browse files
committed
Merge pull request #36 from pvzig/feature/additional-footer-fields
1.1.1
2 parents d2e430e + c1d202f commit 6e83fb9

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

SlackKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SlackKit"
3-
s.version = "1.1.0"
3+
s.version = "1.1.1"
44
s.summary = "a Slack client library for OS X, iOS, and tvOS written in Swift"
55
s.homepage = "https://github.com/pvzig/SlackKit"
66
s.license = 'MIT'

SlackKit/Sources/Attachment.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public struct Attachment {
3737
public let fields: [AttachmentField]?
3838
public let imageURL: String?
3939
public let thumbURL: String?
40+
public let footer: String?
41+
public let footerIcon: String?
42+
public let ts: Int?
4043

4144
internal init(attachment: [String: AnyObject]?) {
4245
fallback = attachment?["fallback"] as? String
@@ -50,10 +53,13 @@ public struct Attachment {
5053
text = attachment?["text"] as? String
5154
imageURL = attachment?["image_url"] as? String
5255
thumbURL = attachment?["thumb_url"] as? String
56+
footer = attachment?["footer"] as? String
57+
footerIcon = attachment?["footer_icon"] as? String
58+
ts = attachment?["ts"] as? Int
5359
fields = (attachment?["fields"] as? [[String: AnyObject]])?.map { AttachmentField(field: $0) }
5460
}
5561

56-
public init(fallback: String, title:String, colorHex: String? = nil, pretext: String? = nil, authorName: String? = nil, authorLink: String? = nil, authorIcon: String? = nil, titleLink: String? = nil, text: String? = nil, fields: [AttachmentField]? = nil, imageURL: String? = nil, thumbURL: String? = nil) {
62+
public init(fallback: String, title:String, colorHex: String? = nil, pretext: String? = nil, authorName: String? = nil, authorLink: String? = nil, authorIcon: String? = nil, titleLink: String? = nil, text: String? = nil, fields: [AttachmentField]? = nil, imageURL: String? = nil, thumbURL: String? = nil, footer: String? = nil, footerIcon:String? = nil, ts:Int? = nil) {
5763
self.fallback = fallback
5864
self.color = colorHex
5965
self.pretext = pretext
@@ -66,6 +72,9 @@ public struct Attachment {
6672
self.fields = fields
6773
self.imageURL = imageURL
6874
self.thumbURL = thumbURL
75+
self.footer = footer
76+
self.footerIcon = footerIcon
77+
self.ts = ts
6978
}
7079

7180
internal func dictionary() -> [String: AnyObject] {
@@ -82,6 +91,9 @@ public struct Attachment {
8291
attachment["fields"] = fieldJSONArray(fields)
8392
attachment["image_url"] = imageURL
8493
attachment["thumb_url"] = thumbURL
94+
attachment["footer"] = footer
95+
attachment["footer_icon"] = footerIcon
96+
attachment["ts"] = ts
8597
return attachment
8698
}
8799

SlackKit/Supporting Files/Info-iOS.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1.0</string>
18+
<string>1.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

SlackKit/Supporting Files/Info-tvOS.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1.0</string>
18+
<string>1.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

SlackKit/Supporting Files/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1.0</string>
18+
<string>1.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)