Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 247fe176fe | |||
| c7365455d2 | |||
| 3a03f745bf | |||
| d291975368 | |||
| cd273f266e | |||
| a01c51dd0d | |||
| 36d1553072 | |||
| eb14758846 | |||
| bf3a5c2422 | |||
| 98fd1342e7 | |||
| 7ab973a03b |
@@ -16,6 +16,7 @@ DerivedData
|
||||
*.hmap
|
||||
*.ipa
|
||||
*.xcuserstate
|
||||
*.DS_Store
|
||||
|
||||
# SwiftPM
|
||||
Packages/
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2.2
|
||||
2.3
|
||||
@@ -1,2 +1,2 @@
|
||||
github "daltoniam/Starscream" ~> 1.0
|
||||
github "glock45/swifter" "d7c820bfc9260e469094b5f8d3d101b30c4a8fac"
|
||||
github "daltoniam/Starscream" "swift-23"
|
||||
github "pvzig/swifter.git" "077f1000d26cc5fa436a26e6d67284130b735a12"
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
github "daltoniam/Starscream" "1.1.3"
|
||||
github "glock45/swifter" "d7c820bfc9260e469094b5f8d3d101b30c4a8fac"
|
||||
github "daltoniam/Starscream" "8f3761215b3bd70d5111048e5e3ac435c862c13d"
|
||||
github "pvzig/swifter" "077f1000d26cc5fa436a26e6d67284130b735a12"
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
//
|
||||
// Package.swift
|
||||
//
|
||||
// Copyright © 2016 Peter Zignego. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "SlackKit",
|
||||
targets: [],
|
||||
dependencies: [
|
||||
.Package(url: "https://github.com/daltoniam/Starscream",
|
||||
majorVersion: 1),
|
||||
.Package(url: "https://github.com/httpswift/swifter", majorVersion: 1)
|
||||
],
|
||||
exclude: ["Examples", "Carthage", "Pods"]
|
||||
)
|
||||
@@ -3,16 +3,25 @@ source 'https://github.com/CocoaPods/Specs.git'
|
||||
use_frameworks!
|
||||
|
||||
target 'SlackKit OS X' do
|
||||
pod 'Starscream'
|
||||
pod 'Swifter'
|
||||
pod 'Starscream', :git => 'https://github.com/pvzig/Starscream.git', :branch => 'swift-23'
|
||||
pod 'Swifter', :git => 'https://github.com/pvzig/swifter.git', :branch => 'stable'
|
||||
end
|
||||
|
||||
target 'SlackKit iOS' do
|
||||
pod 'Starscream'
|
||||
pod 'Swifter'
|
||||
pod 'Starscream', :git => 'https://github.com/pvzig/Starscream.git', :branch => 'swift-23'
|
||||
pod 'Swifter', :git => 'https://github.com/pvzig/swifter.git', :branch => 'stable'
|
||||
end
|
||||
|
||||
target 'SlackKit tvOS' do
|
||||
pod 'Starscream'
|
||||
pod 'Swifter'
|
||||
pod 'Starscream', :git => 'https://github.com/pvzig/Starscream.git', :branch => 'swift-23'
|
||||
pod 'Swifter', :git => 'https://github.com/pvzig/swifter.git', :branch => 'stable'
|
||||
end
|
||||
|
||||
# Set SWIFT_VERSION to 2.3 manually
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
config.build_settings['SWIFT_VERSION'] = '2.3'
|
||||
end
|
||||
end
|
||||
end
|
||||
+21
-5
@@ -1,15 +1,31 @@
|
||||
PODS:
|
||||
- Starscream (1.1.3)
|
||||
- Starscream (1.1.4)
|
||||
- Swifter (1.2.6)
|
||||
|
||||
DEPENDENCIES:
|
||||
- Starscream
|
||||
- Swifter
|
||||
- Starscream (from `https://github.com/pvzig/Starscream.git`, branch `swift-23`)
|
||||
- Swifter (from `https://github.com/pvzig/swifter.git`, branch `stable`)
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
Starscream:
|
||||
:branch: swift-23
|
||||
:git: https://github.com/pvzig/Starscream.git
|
||||
Swifter:
|
||||
:branch: stable
|
||||
:git: https://github.com/pvzig/swifter.git
|
||||
|
||||
CHECKOUT OPTIONS:
|
||||
Starscream:
|
||||
:commit: fc5529e18f1352fbe18bf8c0d8b333e02b636a1d
|
||||
:git: https://github.com/pvzig/Starscream.git
|
||||
Swifter:
|
||||
:commit: 077f1000d26cc5fa436a26e6d67284130b735a12
|
||||
:git: https://github.com/pvzig/swifter.git
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
Starscream: d662732354b40dd19ed1ece3e3c44c80b536b83c
|
||||
Starscream: f919aeaf81afca6d5d4d3e5f6dd136ec92af2aa1
|
||||
Swifter: c6f13d053398f1e2f209c7a394dfd5e863ae0157
|
||||
|
||||
PODFILE CHECKSUM: 372d57254c34897042ce228cf421d7c9cc5caf9f
|
||||
PODFILE CHECKSUM: eb199f4d00b2166c447035baee5537560b583b38
|
||||
|
||||
COCOAPODS: 1.0.1
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||

|
||||
    [](https://github.com/Carthage/Carthage)
|
||||
## SlackKit: A Swift Slack Client Library
|
||||
### Description
|
||||
This is a Slack client library for OS X, iOS, and tvOS written in Swift. It's intended to expose all of the functionality of Slack's [Real Time Messaging API](https://api.slack.com/rtm) as well as the [web APIs](https://api.slack.com/web) that are accessible to [bot users](https://api.slack.com/bot-users). SlackKit also supports Slack’s [OAuth 2.0](https://api.slack.com/docs/oauth) flow including the [Add to Slack](https://api.slack.com/docs/slack-button) and [Sign in with Slack](https://api.slack.com/docs/sign-in-with-slack) buttons, [incoming webhooks](https://api.slack.com/incoming-webhooks), [slash commands](https://api.slack.com/slash-commands), and [message buttons](https://api.slack.com/docs/message-buttons).
|
||||
|
||||
SlackKit also has alpha support for: [Swift 3](https://github.com/pvzig/SlackKit/tree/swift3), [Linux](https://github.com/pvzig/SlackKit/tree/linux)
|
||||
This is the Swift 2.3 branch of SlackKit. SlackKit also has support for [Swift 3](https://github.com/pvzig/SlackKit/tree/swift3) and [Linux](https://github.com/pvzig/SlackKit/tree/linux).
|
||||
|
||||
#### Building the SlackKit Framework
|
||||
To build the SlackKit project directly, first build the dependencies using Carthage or CocoaPods. To use the framework in your application, install it in one of the following ways:
|
||||
@@ -23,7 +24,7 @@ pod install
|
||||
|
||||
Add SlackKit to your Cartfile:
|
||||
```
|
||||
github "pvzig/SlackKit" ~> 2.0
|
||||
github "pvzig/SlackKit" ~> 2.3
|
||||
```
|
||||
and run
|
||||
```
|
||||
@@ -35,19 +36,6 @@ carthage bootstrap --configuration "Debug"
|
||||
```
|
||||
Drag the built `SlackKit.framework` into your Xcode project.
|
||||
|
||||
#### Swift Package Manager
|
||||
Add SlackKit to your Package.swift
|
||||
```swift
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
dependencies: [
|
||||
.Package(url: "https://github.com/pvzig/SlackKit.git", majorVersion: 2)
|
||||
]
|
||||
)
|
||||
```
|
||||
Run `swift build` on your application’s main directory.
|
||||
|
||||
To use the library in your project import it:
|
||||
```
|
||||
import SlackKit
|
||||
|
||||
@@ -773,6 +773,7 @@
|
||||
PRODUCT_NAME = SlackKit;
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 2.3;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -798,6 +799,7 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.launchsoft.SlackKit;
|
||||
PRODUCT_NAME = SlackKit;
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_VERSION = 2.3;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -828,6 +830,7 @@
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 2.3;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -857,6 +860,7 @@
|
||||
SDKROOT = iphoneos;
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
|
||||
SWIFT_VERSION = 2.3;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -884,6 +888,7 @@
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 2.3;
|
||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
||||
};
|
||||
name = Debug;
|
||||
@@ -911,6 +916,7 @@
|
||||
SDKROOT = appletvos;
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
|
||||
SWIFT_VERSION = 2.3;
|
||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
||||
};
|
||||
name = Release;
|
||||
|
||||
@@ -54,6 +54,7 @@ public struct Action {
|
||||
dict["text"] = text
|
||||
dict["type"] = type
|
||||
dict["value"] = value
|
||||
dict["style"] = style?.rawValue
|
||||
dict["confirm"] = confirm?.dictionary()
|
||||
return dict
|
||||
}
|
||||
|
||||
@@ -73,6 +73,7 @@ public enum SlackError: String, ErrorType {
|
||||
case MigrationInProgress = "migration_in_progress"
|
||||
case MissingDuration = "missing_duration"
|
||||
case MissingPostType = "missing_post_type"
|
||||
case MissingScope = "missing_scope"
|
||||
case NameTaken = "name_taken"
|
||||
case NoChannel = "no_channel"
|
||||
case NoComment = "no_comment"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.0</string>
|
||||
<string>2.3.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.0</string>
|
||||
<string>2.3.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.0</string>
|
||||
<string>2.3.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
Reference in New Issue
Block a user