From a16362402cbeccf0992f1b95fad314d93be4c779 Mon Sep 17 00:00:00 2001 From: Killian O'Connell Date: Sun, 13 Aug 2017 09:11:50 +0100 Subject: [PATCH 1/3] Add podspec --- RNCallKit.podspec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 RNCallKit.podspec diff --git a/RNCallKit.podspec b/RNCallKit.podspec new file mode 100644 index 0000000..ed63d75 --- /dev/null +++ b/RNCallKit.podspec @@ -0,0 +1,18 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = "RNCallKit" + s.version = "1.1.3" + s.summary = package['description'] + s.homepage = "https://github.com/ianlin/react-native-callkit" + s.license = "ISC" + s.author = "ianlin" + s.source = { :git => package['repository']['url'], :tag => "v#{s.version}" } + s.requires_arc = true + s.platform = :ios, "8.0" + s.source_files = "ios/RNCallKit/*.{h,m}" + s.dependency 'React/Core' +end + From 456cb05a5775ea9f75b9a19123f39d921cd44f7c Mon Sep 17 00:00:00 2001 From: Killian O'Connell Date: Sun, 13 Aug 2017 09:19:22 +0100 Subject: [PATCH 2/3] take podspec values from package.json --- RNCallKit.podspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RNCallKit.podspec b/RNCallKit.podspec index ed63d75..e25d20b 100644 --- a/RNCallKit.podspec +++ b/RNCallKit.podspec @@ -4,11 +4,11 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = "RNCallKit" - s.version = "1.1.3" + s.version = package['version'] s.summary = package['description'] - s.homepage = "https://github.com/ianlin/react-native-callkit" - s.license = "ISC" - s.author = "ianlin" + s.homepage = package['homepage] + s.license = package['license'] + s.author = package['author'] s.source = { :git => package['repository']['url'], :tag => "v#{s.version}" } s.requires_arc = true s.platform = :ios, "8.0" From e20d8016a4521fbfc901f70bcde0cb24b71b1d6f Mon Sep 17 00:00:00 2001 From: Killian O'Connell Date: Sun, 13 Aug 2017 09:23:15 +0100 Subject: [PATCH 3/3] Update installation instructions --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f0658b..5c9aeda 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ For more information about **CallKit**, please see [Official CallKit Framework D Use version >= **1.1.0** if you're using react native >= 0.40 -## Installation +## Installation (without CocoaPods) ### NPM module @@ -27,6 +27,22 @@ npm install --save react-native-callkit rnpm link react-native-callkit ``` +## Installation (with CocoaPods) + +### NPM module + +```bash +npm install --save react-native-callkit +``` + +### CocaPods +```bash +cd ios +pod install +``` + +## Installation common steps + ### Add Frameworks In `Xcode` -> `Build Phases` -> `Link Binary With Libraries`, add `CallKit.framework` and `Intents.framework` with `Optional` status