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
|
|
|
|
|
|
|
|
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
|
|
|
|
2022-09-22 21:20:03 +00:00
|
|
|
# Mobile build:
|
|
|
|
|
# if File.exist?('../../local_pods/onnxruntime-mobile-c.zip')
|
|
|
|
|
# pod 'onnxruntime-mobile-c', :podspec => '../../onnxruntime-mobile-c.podspec'
|
|
|
|
|
if File.exist?('../../local_pods/onnxruntime-c.zip')
|
|
|
|
|
pod 'onnxruntime-c', :podspec => '../../onnxruntime-c.podspec'
|
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
|