From e5a4a67bdbaa3c54fd8fbe13b2f71761a577d9e6 Mon Sep 17 00:00:00 2001 From: Peter Zignego Date: Mon, 18 Jul 2016 00:07:03 -0400 Subject: [PATCH] Fix imports for SPM --- SlackKit/Sources/Client+EventHandling.swift | 2 ++ SlackKit/Sources/Client.swift | 1 + SlackKit/Sources/ClientOptions.swift | 2 ++ SlackKit/Sources/History.swift | 3 +++ SlackKit/Sources/IncomingWebhook.swift | 2 ++ SlackKit/Sources/OAuthServer.swift | 1 + SlackKit/Sources/Server.swift | 1 + SlackKit/Sources/SlackKit.swift | 2 ++ 8 files changed, 14 insertions(+) diff --git a/SlackKit/Sources/Client+EventHandling.swift b/SlackKit/Sources/Client+EventHandling.swift index e986c39..321e6da 100644 --- a/SlackKit/Sources/Client+EventHandling.swift +++ b/SlackKit/Sources/Client+EventHandling.swift @@ -21,6 +21,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation + internal extension Client { //MARK: - Pong diff --git a/SlackKit/Sources/Client.swift b/SlackKit/Sources/Client.swift index 0b62226..69c84cd 100644 --- a/SlackKit/Sources/Client.swift +++ b/SlackKit/Sources/Client.swift @@ -21,6 +21,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation import Starscream public final class Client: WebSocketDelegate { diff --git a/SlackKit/Sources/ClientOptions.swift b/SlackKit/Sources/ClientOptions.swift index 480b666..9234865 100644 --- a/SlackKit/Sources/ClientOptions.swift +++ b/SlackKit/Sources/ClientOptions.swift @@ -21,6 +21,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation + public struct ClientOptions { let simpleLatest: Bool? diff --git a/SlackKit/Sources/History.swift b/SlackKit/Sources/History.swift index 9e81ebb..aff8a06 100644 --- a/SlackKit/Sources/History.swift +++ b/SlackKit/Sources/History.swift @@ -21,7 +21,10 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation + public struct History { + internal(set) public var latest: NSDate? internal(set) public var messages = [Message]() public let hasMore: Bool? diff --git a/SlackKit/Sources/IncomingWebhook.swift b/SlackKit/Sources/IncomingWebhook.swift index 0e29e0a..cab26be 100644 --- a/SlackKit/Sources/IncomingWebhook.swift +++ b/SlackKit/Sources/IncomingWebhook.swift @@ -21,6 +21,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation + public struct IncomingWebhook { public let url: String? diff --git a/SlackKit/Sources/OAuthServer.swift b/SlackKit/Sources/OAuthServer.swift index a7aa516..d4ded80 100644 --- a/SlackKit/Sources/OAuthServer.swift +++ b/SlackKit/Sources/OAuthServer.swift @@ -21,6 +21,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation import Swifter internal protocol OAuthDelegate { diff --git a/SlackKit/Sources/Server.swift b/SlackKit/Sources/Server.swift index 2ddf931..05e381d 100644 --- a/SlackKit/Sources/Server.swift +++ b/SlackKit/Sources/Server.swift @@ -21,6 +21,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation import Swifter internal enum Reply { diff --git a/SlackKit/Sources/SlackKit.swift b/SlackKit/Sources/SlackKit.swift index 56f7867..c14fc68 100644 --- a/SlackKit/Sources/SlackKit.swift +++ b/SlackKit/Sources/SlackKit.swift @@ -21,6 +21,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +import Foundation + public final class SlackKit: OAuthDelegate { internal(set) public var oauth: OAuthServer?