Skip to content

Commit

Permalink
Refine messaging when setting REACT_NATIVE_NODE_MODULES_DIR env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Jun 29, 2023
1 parent b88e876 commit c2bfebc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ios-xcframework/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ end

pre_install do
# This is required to workaround an issue with RNReanimated after upgrading to version 2.17.0
ENV['REACT_NATIVE_NODE_MODULES_DIR'] = File.join(Dir.pwd, '..', 'gutenberg', 'node_modules')
puts "[Gutenberg] Set REACT_NATIVE_NODE_MODULES_DIR env var for RNReanimated to #{ENV['REACT_NATIVE_NODE_MODULES_DIR']}"
rn_node_modules = File.join(Dir.pwd, '..', 'gutenberg', 'node_modules')

raise "Could not find node modules at given path #{rn_node_modules}" unless File.exist? rn_node_modules

ENV['REACT_NATIVE_NODE_MODULES_DIR'] = rn_node_modules

puts "[Gutenberg] Set REACT_NATIVE_NODE_MODULES_DIR env var for RNReanimated to #{rn_node_modules}"
end

post_install do |installer|
Expand Down
2 changes: 1 addition & 1 deletion ios-xcframework/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,6 @@ SPEC CHECKSUMS:
WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504
Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa

PODFILE CHECKSUM: c69cbc0dceb410112435f206ae1776b0bb7642fb
PODFILE CHECKSUM: 6c2c4570156132166c31b1a64ec99ca9a52f3fd4

COCOAPODS: 1.12.1

0 comments on commit c2bfebc

Please sign in to comment.