Skip to content

Commit 274891c

Browse files
committed
Rename to be unique
1 parent 0e59e27 commit 274891c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/react-native-gesture-handler/RNGestureHandler.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ is_gh_example_app = ENV["GH_EXAMPLE_APP_NAME"] != nil
55

66
compilation_metadata_dir = "CompilationDatabase"
77
compilation_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

1010
Pod::Spec.new do |s|
1111
# NPM package specification

packages/react-native-gesture-handler/scripts/gesture_handler_utils.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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))
99
end
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

0 commit comments

Comments
 (0)