Skip to content

Commit 34e72d2

Browse files
committed
Added react-native-branch-segment pod
1 parent a10840f commit 34e72d2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"docs",
1010
"ios",
1111
"react-native-branch.podspec",
12+
"react-native-branch-segment.podspec",
1213
"scripts",
1314
"src"
1415
],
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require 'json'
2+
3+
# expect package.json in current dir
4+
package_json_filename = File.expand_path("./package.json", __dir__)
5+
6+
# load the spec from package.json
7+
spec = JSON.load(File.read(package_json_filename))
8+
9+
Pod::Spec.new do |s|
10+
s.name = "#{spec['name']}-segment"
11+
s.version = spec['version']
12+
s.summary = spec['description']
13+
s.requires_arc = true
14+
s.authors = {
15+
'rt2zz' => 'zack@root-two.com',
16+
'Jimmy Dee' => 'jgvdthree@gmail.com'
17+
}
18+
s.license = spec['license']
19+
s.homepage = spec['homepage']
20+
s.platform = :ios, "7.0"
21+
s.source = { spec['repository']['type'].to_sym => spec['repository']['url'].sub(/^[a-z]+\+/, '') }
22+
s.source_files = [ "ios/*.h", "ios/*.m"]
23+
s.header_dir = "react_native_branch"
24+
s.dependency 'Branch'
25+
s.dependency 'React' # to ensure the correct build order
26+
end

0 commit comments

Comments
 (0)