Skip to content

Commit

Permalink
Merge pull request tuanpmt#1 from avispatech/cocoapods-support
Browse files Browse the repository at this point in the history
adds podfile and edits README
  • Loading branch information
Vicente Fuenzalida Marín committed Oct 12, 2018
2 parents 974b58f + 7b15edc commit 48573aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@

[react-native](https://github.com/facebook/react-native) module for [ESP8266 ESPTOUCH Smart config](https://github.com/EspressifApp)

> Disclaimer: Modified by Avispatech for internal purposes only.
## Featues
* Support both IOS and Android
* React Native Promise support
* Fast way to do configure wifi network for IOT device

## Getting started
### Mostly automatic install
1. `npm install rnpm --global`
2. `npm install react-native-smartconfig@latest --save`
3. `rnpm link react-native-smartconfig`
1. `npm install react-native-smartconfig@latest --save`
2. Add this to your podfile:
```
pod 'Smartconfig',
:podspec => '../node_modules/react-native-smartconfig/react-native-smartconfig.podspec'
```
3. Install your pods normally (`pod install` inside iOS directory)

### Manual install
#### iOS
Expand Down
17 changes: 17 additions & 0 deletions react-native-smartconfig.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'json'
package_json = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|

s.name = "Smartconfig"
s.version = package_json["version"]
s.summary = package_json["description"]
s.homepage = "https://github.com/tuanpmt/react-native-smartconfig"
s.license = package_json["license"]
s.author = { package_json["author"] => package_json["author"] }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/tuanpmt/react-native-smartconfig.git" }
s.source_files = 'ios/RCTSmartconfig/*.{h,m}'
s.dependency 'React'

end

0 comments on commit 48573aa

Please sign in to comment.