
install! 'cocoapods', :deterministic_uuids => false
use_frameworks! :linkage => :static
ENV['js_engine'] = 'hermes' # js engine configuration for hippy, options are: 'jsc'/'hermes'.


workspace 'HippyDemo.xcworkspace'

target "HippyDemo" do
  platform :ios, '15.0'
  
  # pod hippy,
  # set modular_headers to true if you want to use modular import
  # no need to set testspecs in your production app
  pod 'hippy', :path => '../../..', :modular_headers => true, :testspecs => ['UnitTests']
  
  # Add hippy_hermes_full when using hermes engine
  if ENV['js_engine'] == 'hermes'
    pod 'hippy_hermes_full', :git => 'https://github.com/hippy-contrib/hippy-hermes-bin.git', :tag => '1.0.3'
  end
  
end


post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = "YES"
    end
  end
end
