diff --git a/RCTContactsWrapper.podspec b/RCTContactsWrapper.podspec new file mode 100644 index 0000000..199d10f --- /dev/null +++ b/RCTContactsWrapper.podspec @@ -0,0 +1,18 @@ +require 'json' +version = JSON.parse(File.read('package.json'))["version"] + +Pod::Spec.new do |s| + + s.name = "RCTContactsWrapper" + s.version = version + s.summary = "![alt tag](https://github.com/LynxITDigital/Screenshots/blob/master/RN%20Contacts%20Wrapper%20example.gif)." + s.homepage = "https://github.com/LynxITDigital/react-native-contacts-wrapper" + s.license = "MIT" + s.author = "LynxIT Digital" + s.platform = :ios, "8.0" + s.source = { :git => "https://github.com/LynxITDigital/react-native-contacts-wrapper.git", :tag => "v#{s.version}" } + s.source_files = 'RCTContactsWrapper/**/*.{h,m}' + s.preserve_paths = "**/*.js" + s.dependency 'React' + +end diff --git a/README.md b/README.md index 641bd0c..a9ba324 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ Also add #### iOS +##### Manual 1. Open your xCode project 2. Click project name in project navigator 3. Select the main target in the left hand menu @@ -82,7 +83,17 @@ Also add 8. This will now appear in project explorer, drag in under the Libraries group. 9. In same screen, click + again, you should now see the .a file for you project, Add this 10. Clean and Rebuild your Xcode project +##### With [CocoaPods](https://cocoapods.org/) +Add the following to your `Podfile` and run `pod update`: + +``` + pod 'RCTContactsWrapper', :path => '../node_modules/react-native-contacts-wrapper' +``` + +Edit `Info.plist` as described above. + +If you are using `use_frameworks!` in your `Podfile` you instead need to dynamically load the icon font by doing `Icon.loadFont()` when boostrapping your application. ##API