1- require_relative '../node_modules/react-native/scripts/react_native_pods'
2-
3- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
1+ # Resolve react_native_pods.rb with node to allow for hoisting
2+ require Pod ::Executable . execute_command ( 'node' , [ '-p' ,
3+ 'require.resolve(
4+ "react-native/scripts/react_native_pods.rb",
5+ {paths: [process.argv[1]]},
6+ )' , __dir__ ] ) . strip
47
58platform :ios , '13.4'
69prepare_react_native_project!
@@ -15,16 +18,9 @@ target 'InstabugExample' do
1518 config = use_native_modules!
1619 rn_maps_path = '../node_modules/react-native-maps'
1720 pod 'react-native-google-maps' , :path => rn_maps_path
18- # Flags change depending on the env values.
19- flags = get_default_flags ( )
2021
2122 use_react_native! (
2223 :path => config [ :reactNativePath ] ,
23- # Hermes is now enabled by default. Disable by setting this flag to false.
24- # Upcoming versions of React Native may rely on get_default_flags(), but
25- # we make it explicit here to aid in the React Native upgrade process.
26- :hermes_enabled => flags [ :hermes_enabled ] ,
27- :fabric_enabled => flags [ :fabric_enabled ] ,
2824 # An absolute path to your application root.
2925 :app_path => "#{ Pod ::Config . instance . installation_root } /.."
3026 )
@@ -35,11 +31,12 @@ target 'InstabugExample' do
3531 end
3632
3733 post_install do |installer |
34+ # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3835 react_native_post_install (
3936 installer ,
40- # Set `mac_catalyst_enabled` to `true` in order to apply patches
41- # necessary for Mac Catalyst builds
42- :mac_catalyst_enabled => false
37+ config [ :reactNativePath ] ,
38+ :mac_catalyst_enabled => false ,
39+ # :ccache_enabled => true
4340 )
4441 end
4542end
0 commit comments