onnxruntime/js/react_native/ios/Podfile
Scott McKay 078ceab1db
Use full ORT package for onnxruntime-react-native. (#13037)
**Description**: 
Use full ORT package for onnxruntime-react-native.

Left the params required for the mobile build in comments so they're
easily discovered if we need to create onnxruntime-react-native-mobile
in the future.

**Motivation and Context**
Remove barrier to using ORT with react native as the mobile package that
was being used supports a limited range of opsets/operators/types, and
requires ORT format models. The full package will run any model.
2022-09-23 07:20:03 +10:00

35 lines
862 B
Ruby

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '12.4'
def shared
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Mobile build:
# if File.exist?('../local_pods/onnxruntime-mobile-c.zip')
# pod 'onnxruntime-mobile-c', :podspec => '../onnxruntime-mobile-c.podspec'
# else
# pod 'onnxruntime-mobile-c'
# end
if File.exist?('../local_pods/onnxruntime-c.zip')
pod 'onnxruntime-c', :podspec => '../onnxruntime-c.podspec'
else
pod 'onnxruntime-c'
end
inherit! :search_paths
end
target 'OnnxruntimeModule' do
shared
end
target 'OnnxruntimeModuleTest' do
shared
end