From 228cc0dd0993c2e0fda309ac0417ad40bd5a61c5 Mon Sep 17 00:00:00 2001 From: Asaf Manassen Date: Wed, 18 Apr 2018 20:05:18 +0300 Subject: [PATCH 1/2] add the possibility to install using cocoapods instead of manual --- RCTContactsWrapper.podspec | 18 ++++++++++++++++++ README.md | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 RCTContactsWrapper.podspec 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..da8d56e 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 +##### Option: 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 From 75be02af47d3fd7f003907375b3c5807b12b8905 Mon Sep 17 00:00:00 2001 From: Asaf Manassen Date: Wed, 18 Apr 2018 21:14:55 +0300 Subject: [PATCH 2/2] Fix Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da8d56e..a9ba324 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ 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 -##### Option: With [CocoaPods](https://cocoapods.org/) +##### With [CocoaPods](https://cocoapods.org/) Add the following to your `Podfile` and run `pod update`: