Podfile 2.2 KB

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