Skip to content

Commit 70afbcc

Browse files
authored
Merge pull request #14 from killian90/support-cocoapods-install
Support cocoapods install
2 parents 105e9b9 + e20d801 commit 70afbcc

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For more information about **CallKit**, please see [Official CallKit Framework D
1313

1414
Use version >= **1.1.0** if you're using react native >= 0.40
1515

16-
## Installation
16+
## Installation (without CocoaPods)
1717

1818
### NPM module
1919

@@ -27,6 +27,22 @@ npm install --save react-native-callkit
2727
rnpm link react-native-callkit
2828
```
2929

30+
## Installation (with CocoaPods)
31+
32+
### NPM module
33+
34+
```bash
35+
npm install --save react-native-callkit
36+
```
37+
38+
### CocaPods
39+
```bash
40+
cd ios
41+
pod install
42+
```
43+
44+
## Installation common steps
45+
3046
### Add Frameworks
3147

3248
In `Xcode` -> `Build Phases` -> `Link Binary With Libraries`, add `CallKit.framework` and `Intents.framework` with `Optional` status

RNCallKit.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "RNCallKit"
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.homepage = package['homepage]
10+
s.license = package['license']
11+
s.author = package['author']
12+
s.source = { :git => package['repository']['url'], :tag => "v#{s.version}" }
13+
s.requires_arc = true
14+
s.platform = :ios, "8.0"
15+
s.source_files = "ios/RNCallKit/*.{h,m}"
16+
s.dependency 'React/Core'
17+
end
18+

0 commit comments

Comments
 (0)