Podfile 2.2 KB

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