From f7c986c65c9fa11f1dc29c896edbb4f1e7abfaa0 Mon Sep 17 00:00:00 2001 From: Peter Zignego Date: Tue, 11 Oct 2016 21:01:17 -0400 Subject: [PATCH] Update dependency managers --- Cartfile | 4 ++-- Cartfile.resolved | 2 +- Podfile | 18 ++++++++++++++++++ Podfile.lock | 15 +++++++++++++++ README.md | 16 +++++++++++++--- SlackKit.podspec | 18 ++++++++++++++++++ 6 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 Podfile create mode 100644 Podfile.lock create mode 100644 SlackKit.podspec diff --git a/Cartfile b/Cartfile index b32a723..0b67c44 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ -git "https://github.com/daltoniam/Starscream" -git "https://github.com/pvzig/swifter.git" \ No newline at end of file +git "https://github.com/daltoniam/Starscream" == 2.0.0 +git "https://github.com/pvzig/swifter.git" == 3.0.4 \ No newline at end of file diff --git a/Cartfile.resolved b/Cartfile.resolved index 5c04b69..638ab9e 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ git "https://github.com/daltoniam/Starscream" "2.0.0" -git "https://github.com/pvzig/swifter.git" "3.0.2" +git "https://github.com/pvzig/swifter.git" "3.0.4" diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..c776359 --- /dev/null +++ b/Podfile @@ -0,0 +1,18 @@ +source 'https://github.com/CocoaPods/Specs.git' + +use_frameworks! + +target 'SlackKit OS X' do + pod 'Starscream', '~> 2.0.0' + pod 'Swifter', '~> 1.3.2' +end + +target 'SlackKit iOS' do + pod 'Starscream', '~> 2.0.0' + pod 'Swifter', '~> 1.3.2' +end + +target 'SlackKit tvOS' do + pod 'Starscream', '~> 2.0.0' + pod 'Swifter', '~> 1.3.2' +end \ No newline at end of file diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..e9d034e --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,15 @@ +PODS: + - Starscream (2.0.0) + - Swifter (1.3.2) + +DEPENDENCIES: + - Starscream (~> 2.0.0) + - Swifter (~> 1.3.2) + +SPEC CHECKSUMS: + Starscream: 947c865596f0d6bb3f0203fee23228ed2d471468 + Swifter: dd1800ba8eb3e28b22b8bd20f91a8561a0110fac + +PODFILE CHECKSUM: 3d4e92bde92fd20d6fe672ad26f677fcbfafda1f + +COCOAPODS: 1.1.0.rc.3 diff --git a/README.md b/README.md index 653dd45..7e07e24 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,19 @@ To build the SlackKit project directly, first build the dependencies using Carth ### Installation +#### CocoaPods + +Add SlackKit to your pod file: +``` +use_frameworks! +pod 'SlackKit', '~> 3.1.2' +``` +and run +``` +# Use CocoaPods version >= 1.1.0.rc.2 (gem install cocoapods --pre) +pod install +``` + #### Carthage Add SlackKit to your Cartfile: @@ -44,9 +57,6 @@ let package = Package( ``` Run `swift build` on your application’s main directory. - -#### ~~CocoaPods~~ -SlackKit doesn’t currently build correctly using CocoaPods with Swift 3. I’m hoping to restore support soon. To use the library in your project import it: ``` diff --git a/SlackKit.podspec b/SlackKit.podspec new file mode 100644 index 0000000..d7048bd --- /dev/null +++ b/SlackKit.podspec @@ -0,0 +1,18 @@ +Pod::Spec.new do |s| + s.name = "SlackKit" + s.version = "3.1.2" + s.summary = "a Slack client library for OS X, iOS, and tvOS written in Swift" + s.homepage = "https://github.com/pvzig/SlackKit" + s.license = 'MIT' + s.author = { "Peter Zignego" => "peter@launchsoft.co" } + s.source = { :git => "https://github.com/pvzig/SlackKit.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/pvzig' + s.ios.deployment_target = '8.0' + s.osx.deployment_target = '10.10' + s.tvos.deployment_target = '9.0' + s.requires_arc = true + s.source_files = 'SlackKit/Sources/*.swift' + s.frameworks = 'Foundation' + s.dependency 'Starscream' + s.dependency 'Swifter' +end