forked from stripe/stripe-react-native
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstripe-react-native.podspec
More file actions
58 lines (48 loc) · 2.09 KB
/
stripe-react-native.podspec
File metadata and controls
58 lines (48 loc) · 2.09 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
# Keep stripe_version in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/stripe-identity-react-native.podspec
stripe_version = '~> 24.22.0'
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
Pod::Spec.new do |s|
s.name = 'stripe-react-native'
s.version = package['version']
s.summary = package['description']
s.homepage = package['homepage']
s.license = package['license']
s.authors = package['author']
s.platforms = { ios: '13.0' }
s.source = { git: 'https://github.com/stripe/stripe-react-native.git', tag: s.version.to_s }
s.source_files = 'ios/**/*.{h,m,mm,swift}'
s.exclude_files = [ 'ios/Tests/', 'ios/NewArch/' ]
# These headers contain c++ code so make sure they are private to avoid
# being exported to the umbrella header, which is used by swift interop.
# StripeSwiftInterop.h will cause circular dependency issues.
s.private_header_files = [ 'ios/StripeSdk.h', 'ios/StripeSwiftInterop.h' ]
s.header_dir = 'stripe_react_native'
s.pod_target_xcconfig = {
'USE_HEADERMAP' => 'YES',
'DEFINES_MODULE' => 'YES',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
}
s.test_spec 'Tests' do |test_spec|
test_spec.platforms = { ios: '15.1' }
test_spec.source_files = 'ios/Tests/**/*.{m,swift}'
end
s.dependency 'React-Core'
s.dependency 'Stripe', stripe_version
s.dependency 'StripePaymentSheet', stripe_version
s.dependency 'StripePayments', stripe_version
s.dependency 'StripePaymentsUI', stripe_version
s.dependency 'StripeApplePay', stripe_version
s.dependency 'StripeFinancialConnections', stripe_version
if fabric_enabled
install_modules_dependencies(s)
s.subspec "NewArch" do |ss|
ss.source_files = "ios/NewArch/**/*.{h,m,mm}"
# These headers contain c++ code so make sure they are private to avoid
# being exported to the umbrella header, which is used by swift interop.
ss.private_header_files = '**/*.h'
end
end
end