react-native-integrate
Version:
Automate integration of additional code into React Native projects
2 lines (1 loc) • 1.59 kB
TypeScript
export declare const mockPodFileTemplate = "require_relative '../node_modules/react-native/scripts/react_native_pods'\nrequire_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'\n\nplatform :ios, '12.4'\ninstall! 'cocoapods', :deterministic_uuids => false\n\ntarget 'TestProject' do\n use_frameworks! :linkage => :static\n config = use_native_modules!\n\n # Flags change depending on the env values.\n flags = get_default_flags()\n\n use_react_native!(\n :path => config[:reactNativePath],\n # Hermes is now enabled by default. Disable by setting this flag to false.\n # Upcoming versions of React Native may rely on get_default_flags(), but\n # we make it explicit here to aid in the React Native upgrade process.\n :hermes_enabled => true,\n :fabric_enabled => flags[:fabric_enabled],\n # Enables Flipper.\n #\n # Note that if you have use_frameworks! enabled, Flipper will not work and\n # you should disable the next line.\n # :flipper_configuration => FlipperConfiguration.enabled,\n # An absolute path to your application root.\n :app_path => \"#{Pod::Config.instance.installation_root}/..\"\n )\n\n target 'TestProjectTests' do\n inherit! :complete\n # Pods for testing\n end\n\n post_install do |installer|\n react_native_post_install(\n installer,\n # Set `mac_catalyst_enabled` to `true` in order to apply patches\n # necessary for Mac Catalyst builds\n :mac_catalyst_enabled => false\n )\n __apply_Xcode_12_5_M1_post_install_workaround(installer)\n end\nend\n";