File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ is_gh_example_app = ENV["GH_EXAMPLE_APP_NAME"] != nil
55
66compilation_metadata_dir = "CompilationDatabase"
77compilation_metadata_generation_flag = is_gh_example_app ? '-gen-cdb-fragment-path ' + compilation_metadata_dir : ''
8- version_flag = "-DREACT_NATIVE_MINOR_VERSION=#{ get_react_native_minor_version ( ) } "
8+ version_flag = "-DREACT_NATIVE_MINOR_VERSION=#{ rngh_get_react_native_minor_version ( ) } "
99
1010Pod ::Spec . new do |s |
1111 # NPM package specification
Original file line number Diff line number Diff line change 1- def try_to_parse_react_native_package_json ( react_native_dir )
1+ def rngh_try_to_parse_react_native_package_json ( react_native_dir )
22 react_native_package_json_path = File . join ( react_native_dir , 'package.json' )
33
44 if !File . exist? ( react_native_package_json_path )
@@ -8,13 +8,13 @@ def try_to_parse_react_native_package_json(react_native_dir)
88 return JSON . parse ( File . read ( react_native_package_json_path ) )
99end
1010
11- def get_react_native_minor_version ( )
11+ def rngh_get_react_native_minor_version ( )
1212 react_native_dir = File . dirname ( `cd "#{ Pod ::Config . instance . installation_root . to_s } " && node --print "require.resolve('react-native/package.json')"` )
13- react_native_json = try_to_parse_react_native_package_json ( react_native_dir )
13+ react_native_json = rngh_try_to_parse_react_native_package_json ( react_native_dir )
1414
1515 if react_native_json == nil
1616 node_modules_dir = ENV [ "REACT_NATIVE_NODE_MODULES_DIR" ]
17- react_native_json = try_to_parse_react_native_package_json ( File . join ( node_modules_dir , 'react-native' ) )
17+ react_native_json = rngh_try_to_parse_react_native_package_json ( File . join ( node_modules_dir , 'react-native' ) )
1818 end
1919
2020 if react_native_json == nil
You can’t perform that action at this time.
0 commit comments