Podfile 2.2 KB

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