Podfile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Resolve react_native_pods.rb with node to allow for hoisting
  2. require Pod::Executable.execute_command('node', ['-p',
  3. 'require.resolve(
  4. "react-native/scripts/react_native_pods.rb",
  5. {paths: [process.argv[1]]},
  6. )', __dir__]).strip
  7. platform :ios, '14.0'
  8. prepare_react_native_project!
  9. linkage = ENV['USE_FRAMEWORKS']
  10. if linkage != nil
  11. Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  12. use_frameworks! :linkage => linkage.to_sym
  13. end
  14. target 'NexilisSampleCode' do
  15. config = use_native_modules!
  16. pod 'NexilisLite', '***REPLACE***WITH***NEXILIS***VERSION***LIBRARY***'
  17. pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  18. use_frameworks!
  19. use_react_native!(
  20. :path => config[:reactNativePath],
  21. # An absolute path to your application root.
  22. :app_path => "#{Pod::Config.instance.installation_root}/.."
  23. )
  24. target 'NexilisSampleCodeTests' do
  25. inherit! :complete
  26. # Pods for testing
  27. end
  28. post_install do |installer|
  29. # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
  30. react_native_post_install(
  31. installer,
  32. config[:reactNativePath],
  33. :mac_catalyst_enabled => false,
  34. # :ccache_enabled => true
  35. )
  36. end
  37. end