BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/scripts/cocoapods
Run
Logout
Edit File
Size: 2.31 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/scripts/cocoapods/local_podspec_patch.rb
Text
Base64
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Monkeypatch of `Pod::Lockfile` to ensure automatic update of dependencies integrated with a local podspec when their version changed. # This is necessary because local podspec dependencies must be otherwise manually updated. module LocalPodspecPatch # Returns local podspecs whose versions differ from the one in the `react-native` package. def self.pods_to_update(react_native_path: "../node_modules/react-native", dir_manager: Dir, file_manager: File) @@local_podspecs = dir_manager.glob("#{react_native_path}/third-party-podspecs/*").map { |file| file_manager.basename(file, ".podspec") } @@local_podspecs = @@local_podspecs.select do |podspec_name| # Read local podspec to determine the cached version local_podspec_path = file_manager.join( dir_manager.pwd, "Pods/Local Podspecs/#{podspec_name}.podspec.json" ) # Local podspec cannot be outdated if it does not exist, yet next unless file_manager.exist?(local_podspec_path) local_podspec = file_manager.read(local_podspec_path) local_podspec_json = JSON.parse(local_podspec) local_version = local_podspec_json["version"] # Read the version from a podspec from the `react-native` package podspec_path = "#{react_native_path}/third-party-podspecs/#{podspec_name}.podspec" current_podspec = Pod::Specification.from_file(podspec_path) current_version = current_podspec.version.to_s current_version != local_version end @@local_podspecs end # Patched `detect_changes_with_podfile` method def detect_changes_with_podfile(podfile) Pod::UI.puts "Invoke detect_changes_with_podfile patched method".red changes = super(podfile) return patch_detect_changes_with_podfile(changes) end def patch_detect_changes_with_podfile(changes) @@local_podspecs.each do |local_podspec| next unless changes[:unchanged].include?(local_podspec) changes[:unchanged].delete(local_podspec) changes[:changed] << local_podspec end changes end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 14
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
autolinking.rb
8.71 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
autolinking_utils.rb
769 B
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
codegen.rb
2.10 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
codegen_script_phase_extractor.rb
352 B
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
codegen_utils.rb
16.64 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fabric.rb
977 B
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers.rb
3.83 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jsengine.rb
1.63 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
local_podspec_patch.rb
2.31 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new_architecture.rb
9.98 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
privacy_manifest_utils.rb
8.89 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
runtime.rb
879 B
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
spm.rb
3.59 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.rb
31.75 KB
lrw-r--r--
2025-03-28 11:04:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).