Compare commits

...
5 Commits
Author SHA1 Message Date
Erik abbd8e6a67 update 2015-03-12 10:19:59 -04:00
Erik Little 3ba793acf1 Merge pull request #8 from banjun/readme-cocoapods
[README] add CocoaPods in Installation section
2015-03-12 10:19:27 -04:00
banjun ea20dc809e [README] add CocoaPods in Installation section 2015-03-12 22:58:00 +09:00
Erik 3e5fe4009c Really update it 2015-03-12 09:33:59 -04:00
Erik a84aa31489 update podspec 2015-03-12 09:32:12 -04:00
2 changed files with 38 additions and 4 deletions

No files matched your search

+34
View File
@@ -7,8 +7,42 @@ For Swift 1.2 use the 1.2 branch.
Installation
============
Manually (iOS 7+)
-----------------
1. Copy the SwiftIO folder into your Xcode project!
CocoaPods (iOS 8+)
------------------
Install cocoapods 0.36.0 or later:
```
$ gem install cocoapods
```
Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Socket.IO-Client-Swift', '~> 1.1'
```
Install pods:
```
$ pod install
```
Import in your swift file:
```swift
import Socket_IO_Client_Swift
```
API
===
Constructor
+4 -4
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Socket.IO-Client-Swift"
s.version = "1.1.0"
s.version = "1.1.2"
s.summary = "Socket.IO-client for Swift"
s.description = <<-DESC
Socket.IO-client for Swift.
@@ -10,9 +10,9 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/socketio/socket.io-client-swift"
s.license = { :type => 'MIT' }
s.author = { "Erik" => "nuclear.ace@gmail.com" }
s.platform = :ios, "8.0"
s.platform = :osx, "10.10"
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.1.0-pod' }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.1.2' }
s.source_files = "SwiftIO/**/*.swift"
s.requires_arc = true
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files