File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 99 " docs" ,
1010 " ios" ,
1111 " react-native-branch.podspec" ,
12+ " react-native-branch-segment.podspec" ,
1213 " scripts" ,
1314 " src"
1415 ],
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments