Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abbd8e6a67 | ||
|
|
3ba793acf1 | ||
|
|
ea20dc809e | ||
|
|
3e5fe4009c | ||
|
|
a84aa31489 |
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user