Skip to content

Commit 798737a

Browse files
authored
Merge pull request #2 from atvenu/master
Support CocoaPods
2 parents 7a1fc5f + 95ae7b5 commit 798737a

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ __Note for iOS:__ If your react-native version < 0.40 install with this tag inst
1818
```
1919
npm install [email protected] --save
2020
```
21+
## if using Cocoapods
22+
23+
Update the following line with your path to `node_modules/` and add it to your
24+
podfile:
25+
26+
```ruby
27+
pod 'TcpSockets', :path => '../node_modules/react-native-tcp'
28+
```
2129

2230
## Link in the native dependency
2331

TcpSockets.podspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
7+
s.name = 'TcpSockets'
8+
s.version = package['version']
9+
s.summary = package['description']
10+
s.homepage = package['repository']['url']
11+
s.license = package['license']
12+
s.author = package['author']
13+
s.source = { :git => s.homepage, :tag => 'v#{s.version}' }
14+
15+
s.requires_arc = true
16+
s.ios.deployment_target = '8.0'
17+
s.tvos.deployment_target = '9.0'
18+
19+
s.preserve_paths = 'README.md', 'package.json', '**/*.js'
20+
s.source_files = 'ios/**/*.{h,m}'
21+
s.dependency 'React'
22+
23+
end

0 commit comments

Comments
 (0)