-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOnramperReactNative.podspec
More file actions
36 lines (30 loc) · 1.49 KB
/
Copy pathOnramperReactNative.podspec
File metadata and controls
36 lines (30 loc) · 1.49 KB
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
36
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'OnramperReactNative'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
s.author = package['author']
s.homepage = package['homepage']
s.platforms = { :ios => '16.0' }
s.swift_version = '5.9'
s.source = { :git => "#{package['repository']}.git", :tag => "v#{s.version}" }
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
}
# This podspec lives at the package root (not ios/) because nitrogen emits its
# generated source globs (nitrogen/generated/**) relative to the podspec's
# directory via add_nitrogen_files below. Our own sources are ios/-prefixed.
s.source_files = 'ios/*.swift'
s.vendored_frameworks = 'ios/Frameworks/OnramperSDK.xcframework'
load File.join(__dir__, 'nitrogen', 'generated', 'ios', 'OnramperReactNative+autolinking.rb')
add_nitrogen_files(s)
# Wires up the React Native new-architecture dependencies and header search
# paths (React-Core, React-RCTFabric, ReactCommon, Yoga, folly, …). Required
# because our Nitro View's generated code includes React Fabric headers, which
# transitively include yoga/style/Style.h — without this the pod fails to
# compile with "'yoga/style/Style.h' file not found".
install_modules_dependencies(s)
end