mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
**Description**: Use full ORT package for onnxruntime-react-native. Left the params required for the mobile build in comments so they're easily discovered if we need to create onnxruntime-react-native-mobile in the future. **Motivation and Context** Remove barrier to using ORT with react native as the mobile package that was being used supports a limited range of opsets/operators/types, and requires ORT format models. The full package will run any model.
22 lines
733 B
Ruby
22 lines
733 B
Ruby
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.static_framework = true
|
|
|
|
spec.name = "onnxruntime-react-native"
|
|
spec.version = package["version"]
|
|
spec.summary = package["description"]
|
|
spec.homepage = package["homepage"]
|
|
spec.license = package["license"]
|
|
spec.authors = package["author"]
|
|
|
|
spec.platforms = { :ios => "12.4" }
|
|
spec.source = { :git => "https://github.com/Microsoft/onnxruntime.git", :tag => "rel-#{spec.version}" }
|
|
|
|
spec.source_files = "ios/*.{h,mm}"
|
|
|
|
spec.dependency "React-Core"
|
|
spec.dependency "onnxruntime-c"
|
|
end
|