Podfile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
  2. require_relative '../node_modules/react-native/scripts/react_native_pods'
  3. require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  4. platform :ios, '13.0'
  5. install! 'cocoapods', :deterministic_uuids => false
  6. target 'hola' do
  7. use_expo_modules!
  8. post_integrate do |installer|
  9. begin
  10. expo_patch_react_imports!(installer)
  11. rescue => e
  12. Pod::UI.warn e
  13. end
  14. end
  15. config = use_native_modules!
  16. # Flags change depending on the env values.
  17. flags = get_default_flags()
  18. use_react_native!(
  19. :path => config[:reactNativePath],
  20. # Hermes is now enabled by default. Disable by setting this flag to false.
  21. # Upcoming versions of React Native may rely on get_default_flags(), but
  22. # we make it explicit here to aid in the React Native upgrade process.
  23. :hermes_enabled => false,
  24. :fabric_enabled => flags[:fabric_enabled],
  25. # Enables Flipper.
  26. #
  27. # Note that if you have use_frameworks! enabled, Flipper will not work and
  28. # you should disable the next line.
  29. :flipper_configuration => FlipperConfiguration.enabled,
  30. # An absolute path to your application root.
  31. :app_path => "#{Pod::Config.instance.installation_root}/.."
  32. )
  33. target 'holaTests' do
  34. inherit! :complete
  35. # Pods for testing
  36. end
  37. post_install do |installer|
  38. react_native_post_install(
  39. installer,
  40. # Set `mac_catalyst_enabled` to `true` in order to apply patches
  41. # necessary for Mac Catalyst builds
  42. :mac_catalyst_enabled => false
  43. )
  44. __apply_Xcode_12_5_M1_post_install_workaround(installer)
  45. # Add these lines for Xcode 14 builds
  46. installer.generated_projects.each do |project|
  47. project.targets.each do |target|
  48. target.build_configurations.each do |config|
  49. config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
  50. end
  51. end
  52. end
  53. # End of added lines
  54. end
  55. end