mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
# Description This PR removes the building of the ORT "mobile" packages and much of the associated infrastructure which is no longer needed. Not removed yet - tools/ci_build/github/android/mobile_package.required_operators.config and the helper scripts that depend on it. # Motivation and Context The mobile packages were deprecated in 1.18. Users should use the full packages (Android - onnxruntime-android, iOS - onnxruntime-c/onnxruntime-objc) instead or do a custom build.
31 lines
746 B
Ruby
31 lines
746 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, '13.0'
|
|
|
|
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!
|
|
|
|
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
|
|
else
|
|
pod 'onnxruntime-c'
|
|
end
|
|
|
|
inherit! :search_paths
|
|
end
|
|
|
|
target 'OnnxruntimeModule' do
|
|
shared
|
|
end
|
|
|
|
target 'OnnxruntimeModuleTest' do
|
|
shared
|
|
end
|