|
1
|
require 'json' |
|
2
|
|
|
3
|
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json'))) |
|
4
|
|
|
5
|
Pod::Spec.new do |s| |
|
6
|
s.name = 'OndeInference' |
|
7
|
s.version = package['version'] |
|
8
|
s.summary = package['description'] |
|
9
|
s.description = package['description'] |
|
10
|
s.license = package['license'] |
|
11
|
s.author = package['author'] |
|
12
|
s.homepage = 'https://ondeinference.com' |
|
13
|
s.platforms = { :ios => '16.0' } |
|
14
|
s.source = { git: 'https://github.com/ondeinference/onde.git', tag: s.version.to_s } |
|
15
|
s.static_framework = true |
|
16
|
|
|
17
|
s.dependency 'ExpoModulesCore' |
|
18
|
|
|
19
|
s.source_files = '**/*.{h,m,mm,swift,hpp,cpp}' |
|
20
|
|
|
21
|
# XCFramework bundles both device (aarch64-apple-ios) and simulator |
|
22
|
# (aarch64-apple-ios-sim) slices. CocoaPods selects the right one |
|
23
|
# automatically based on the target SDK. |
|
24
|
s.vendored_frameworks = 'rust/OndeReactNative.xcframework' |
|
25
|
|
|
26
|
s.pod_target_xcconfig = { |
|
27
|
'DEFINES_MODULE' => 'YES', |
|
28
|
'SWIFT_COMPILATION_MODE' => 'wholemodule', |
|
29
|
'OTHER_LDFLAGS' => '-londe_react_native', |
|
30
|
} |
|
31
|
end |