Podfile 862 Bytes
Newer Older
gaoqiong's avatar
gaoqiong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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