11require_relative '../node_modules/react-native/scripts/react_native_pods'
22require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33
4- platform :ios , '11.0'
4+ platform :ios , '13.0'
5+ install! 'cocoapods' , :deterministic_uuids => false
56
67target 'example' do
78 config = use_native_modules!
89
10+ # Flags change depending on the env values.
11+ flags = get_default_flags ( )
12+
913 use_react_native! (
1014 :path => config [ :reactNativePath ] ,
11- # to enable hermes on iOS, change `false` to `true` and then install pods
12- :hermes_enabled => false
15+ # Hermes is now enabled by default. Disable by setting this flag to false.
16+ # Upcoming versions of React Native may rely on get_default_flags(), but
17+ # we make it explicit here to aid in the React Native upgrade process.
18+ :hermes_enabled => true ,
19+ :fabric_enabled => flags [ :fabric_enabled ] ,
20+ # Enables Flipper.
21+ #
22+ # Note that if you have use_frameworks! enabled, Flipper will not work and
23+ # you should disable the next line.
24+ :flipper_configuration => FlipperConfiguration . enabled ,
25+ # An absolute path to your application root.
26+ :app_path => "#{ Pod ::Config . instance . installation_root } /.."
1327 )
1428
15- pod 'grpc-react-native' , :path => '../..'
16-
1729 target 'exampleTests' do
1830 inherit! :complete
1931 # Pods for testing
2032 end
2133
22- # Enables Flipper.
23- #
24- # Note that if you have use_frameworks! enabled, Flipper will not work and
25- # you should disable the next line.
26- use_flipper! ( )
27-
2834 post_install do |installer |
29- react_native_post_install ( installer )
35+ react_native_post_install (
36+ installer ,
37+ # Set `mac_catalyst_enabled` to `true` in order to apply patches
38+ # necessary for Mac Catalyst builds
39+ :mac_catalyst_enabled => false
40+ )
3041 __apply_Xcode_12_5_M1_post_install_workaround ( installer )
3142 end
3243end
0 commit comments