platform :ios, '13.0'

target 'OrtExtensionsUsage' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for OrtExtensionsUsage
  pod 'onnxruntime-objc', '>= 1.16.0'

  # environment variable ORT_EXTENSIONS_LOCAL_POD_PATH can be used to specify a local onnxruntime-extensions-c pod path
  ort_extensions_local_pod_path = ENV['ORT_EXTENSIONS_LOCAL_POD_PATH']
  if ort_extensions_local_pod_path != nil
    print 'Using onnxruntime-extensions-c pod at ', ort_extensions_local_pod_path, "\n"
    pod 'onnxruntime-extensions-c', :path => ort_extensions_local_pod_path
  else
    pod 'onnxruntime-extensions-c'
  end

  target 'OrtExtensionsUsageTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end
