Podfile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. require_relative '../node_modules/react-native/scripts/react_native_pods'
  2. require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  3. platform :ios, min_ios_version_supported
  4. prepare_react_native_project!
  5. # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
  6. # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
  7. #
  8. # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
  9. # ```js
  10. # module.exports = {
  11. # dependencies: {
  12. # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
  13. # ```
  14. flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
  15. linkage = ENV['USE_FRAMEWORKS']
  16. if linkage != nil
  17. Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  18. use_frameworks! :linkage => linkage.to_sym
  19. end
  20. target 'NavMelon' do
  21. config = use_native_modules!
  22. # Flags change depending on the env values.
  23. flags = get_default_flags()
  24. use_react_native!(
  25. :path => config[:reactNativePath],
  26. # Hermes is now enabled by default. Disable by setting this flag to false.
  27. # Upcoming versions of React Native may rely on get_default_flags(), but
  28. # we make it explicit here to aid in the React Native upgrade process.
  29. :hermes_enabled => flags[:hermes_enabled],
  30. :fabric_enabled => flags[:fabric_enabled],
  31. # Enables Flipper.
  32. #
  33. # Note that if you have use_frameworks! enabled, Flipper will not work and
  34. # you should disable the next line.
  35. :flipper_configuration => flipper_config,
  36. # An absolute path to your application root.
  37. :app_path => "#{Pod::Config.instance.installation_root}/.."
  38. )
  39. target 'NavMelonTests' do
  40. inherit! :complete
  41. # Pods for testing
  42. end
  43. post_install do |installer|
  44. react_native_post_install(
  45. installer,
  46. # Set `mac_catalyst_enabled` to `true` in order to apply patches
  47. # necessary for Mac Catalyst builds
  48. :mac_catalyst_enabled => false
  49. )
  50. __apply_Xcode_12_5_M1_post_install_workaround(installer)
  51. end
  52. end