Няма описание

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
  2. require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
  3. require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
  4. require 'json'
  5. podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
  6. platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
  7. install! 'cocoapods',
  8. :deterministic_uuids => false
  9. target 'Test' do
  10. use_expo_modules!
  11. config = use_native_modules!
  12. use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
  13. # Flags change depending on the env values.
  14. flags = get_default_flags()
  15. use_react_native!(
  16. :path => config[:reactNativePath],
  17. :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes',
  18. :fabric_enabled => flags[:fabric_enabled],
  19. # An absolute path to your application root.
  20. :app_path => "#{Pod::Config.instance.installation_root}/..",
  21. #
  22. # Uncomment to opt-in to using Flipper
  23. # Note that if you have use_frameworks! enabled, Flipper will not work
  24. # :flipper_configuration => !ENV['CI'] ? FlipperConfiguration.enabled : FlipperConfiguration.disabled,
  25. )
  26. post_install do |installer|
  27. react_native_post_install(
  28. installer,
  29. # Set `mac_catalyst_enabled` to `true` in order to apply patches
  30. # necessary for Mac Catalyst builds
  31. :mac_catalyst_enabled => false
  32. )
  33. __apply_Xcode_12_5_M1_post_install_workaround(installer)
  34. # This is necessary for Xcode 14, because it signs resource bundles by default
  35. # when building for devices.
  36. installer.target_installation_results.pod_target_installation_results
  37. .each do |pod_name, target_installation_result|
  38. target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
  39. resource_bundle_target.build_configurations.each do |config|
  40. config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
  41. end
  42. end
  43. end
  44. end
  45. post_integrate do |installer|
  46. begin
  47. expo_patch_react_imports!(installer)
  48. rescue => e
  49. Pod::UI.warn e
  50. end
  51. end
  52. end