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'
|
|
|
|
|
|
2022-07-27 22:15:45 +00:00
|
|
|
platform :ios, '12.4'
|
2021-05-11 17:34:40 +00:00
|
|
|
|
2021-06-15 20:36:05 +00:00
|
|
|
def shared
|
2021-05-11 17:34:40 +00:00
|
|
|
config = use_native_modules!
|
|
|
|
|
|
|
|
|
|
use_react_native!(:path => config["reactNativePath"])
|
2021-06-15 20:36:05 +00:00
|
|
|
|
|
|
|
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
|
|
|
use_frameworks!
|
2023-04-21 16:46:26 +00:00
|
|
|
|
|
|
|
|
# Mobile build
|
|
|
|
|
# ort_mobile_c_local_pod_path = ENV['ORT_MOBILE_C_LOCAL_POD_PATH']
|
|
|
|
|
# if ort_mobile_c_local_pod_path != nil
|
|
|
|
|
# print 'Using onnxruntime-c pod at ', ort_mobile_c_local_pod_path, "\n"
|
|
|
|
|
# pod 'onnxruntime-mobile-c', :path => ort_mobile_c_local_pod_path
|
2022-09-22 21:20:03 +00:00
|
|
|
# else
|
|
|
|
|
# pod 'onnxruntime-mobile-c'
|
|
|
|
|
# end
|
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
|
2022-02-10 05:37:05 +00:00
|
|
|
else
|
2022-09-22 21:20:03 +00:00
|
|
|
pod 'onnxruntime-c'
|
2022-02-10 05:37:05 +00:00
|
|
|
end
|
2021-06-15 20:36:05 +00:00
|
|
|
|
|
|
|
|
inherit! :search_paths
|
2021-05-11 17:34:40 +00:00
|
|
|
end
|
|
|
|
|
|
2021-06-15 20:36:05 +00:00
|
|
|
target 'OnnxruntimeModule' do
|
|
|
|
|
shared
|
|
|
|
|
end
|
2021-05-11 17:34:40 +00:00
|
|
|
|
2021-06-15 20:36:05 +00:00
|
|
|
target 'OnnxruntimeModuleTest' do
|
|
|
|
|
shared
|
2021-05-11 17:34:40 +00:00
|
|
|
end
|