Skip to content

Support CocoaPods #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ __Note for iOS:__ If your react-native version < 0.40 install with this tag inst
```
npm install react-native-tcp@3.1.0 --save
```
## if using Cocoapods

Update the following line with your path to `node_modules/` and add it to your
podfile:

```ruby
pod 'TcpSockets', :path => '../node_modules/react-native-tcp'
```

## Link in the native dependency

Expand Down
23 changes: 23 additions & 0 deletions TcpSockets.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|

s.name = 'TcpSockets'
s.version = package['version']
s.summary = package['description']
s.homepage = package['repository']['url']
s.license = package['license']
s.author = package['author']
s.source = { :git => s.homepage, :tag => 'v#{s.version}' }

s.requires_arc = true
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'

s.preserve_paths = 'README.md', 'package.json', '**/*.js'
s.source_files = 'ios/**/*.{h,m}'
s.dependency 'React'

end