diff --git a/README.md b/README.md index 62621cf..f79f220 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [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 @@ -11,9 +13,13 @@ ## 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 diff --git a/react-native-smartconfig.podspec b/react-native-smartconfig.podspec new file mode 100644 index 0000000..c0615d9 --- /dev/null +++ b/react-native-smartconfig.podspec @@ -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 \ No newline at end of file