Podfile 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 'json'
  4. podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
  5. ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
  6. ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
  7. platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
  8. install! 'cocoapods',
  9. :deterministic_uuids => false
  10. prepare_react_native_project!
  11. target 'Crazycharge' do
  12. use_expo_modules!
  13. if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
  14. config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
  15. else
  16. config_command = [
  17. 'npx',
  18. 'expo-modules-autolinking',
  19. 'react-native-config',
  20. '--json',
  21. '--platform',
  22. 'ios'
  23. ]
  24. end
  25. # @generated begin react-native-maps - expo prebuild (DO NOT MODIFY) sync-e9cc66c360abe50bc66d89fffb3c55b034d7d369
  26. pod 'react-native-google-maps', path: File.dirname(`node --print "require.resolve('react-native-maps/package.json')"`)
  27. # @generated end react-native-maps
  28. config = use_native_modules!(config_command)
  29. use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
  30. use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
  31. use_react_native!(
  32. :path => config[:reactNativePath],
  33. :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
  34. # An absolute path to your application root.
  35. :app_path => "#{Pod::Config.instance.installation_root}/..",
  36. :privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
  37. )
  38. post_install do |installer|
  39. react_native_post_install(
  40. installer,
  41. config[:reactNativePath],
  42. :mac_catalyst_enabled => false,
  43. :ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
  44. )
  45. # This is necessary for Xcode 14, because it signs resource bundles by default
  46. # when building for devices.
  47. installer.target_installation_results.pod_target_installation_results
  48. .each do |pod_name, target_installation_result|
  49. target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
  50. resource_bundle_target.build_configurations.each do |config|
  51. config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
  52. end
  53. end
  54. end
  55. end
  56. end