2021-05-11 17:34:40 +00:00
|
|
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
|
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
|
|
2024-06-04 17:15:20 +00:00
|
|
|
platform :ios, '13.0'
|
2021-05-11 17:34:40 +00:00
|
|
|
|
|
|
|
|
target 'OnnxruntimeModuleExample' do
|
|
|
|
|
config = use_native_modules!
|
|
|
|
|
|
|
|
|
|
use_react_native!(:path => config["reactNativePath"])
|
|
|
|
|
|
2021-06-15 20:36:05 +00:00
|
|
|
use_frameworks!
|
2021-12-14 03:02:10 +00:00
|
|
|
|
2023-04-21 16:46:26 +00:00
|
|
|
ort_c_local_pod_path = ENV['ORT_C_LOCAL_POD_PATH']
|
|
|
|
|
if ort_c_local_pod_path != nil
|
|
|
|
|
print 'Using onnxruntime-c pod at ', ort_c_local_pod_path, "\n"
|
|
|
|
|
pod 'onnxruntime-c', :path => ort_c_local_pod_path
|
2021-12-14 03:02:10 +00:00
|
|
|
end
|
2022-07-27 22:15:45 +00:00
|
|
|
pod 'onnxruntime-react-native', :path => '../node_modules/onnxruntime-react-native'
|
2021-06-15 20:36:05 +00:00
|
|
|
|
|
|
|
|
inherit! :search_paths
|
2021-05-11 17:34:40 +00:00
|
|
|
end
|