-
Notifications
You must be signed in to change notification settings - Fork 71
/
clevertap-react-native.podspec
37 lines (30 loc) · 1.16 KB
/
clevertap-react-native.podspec
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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/CleverTap/clevertap-react-native.git', :tag => s.version }
s.requires_arc = true
s.module_name = 'CleverTapReact'
s.platform = :ios, '9.0'
s.preserve_paths = 'LICENSE.md', 'README.md', 'package.json', 'index.js'
s.source_files = 'ios/CleverTapReact/*.{h,m,mm}'
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency 'React-Core'
end
s.dependency 'CleverTap-iOS-SDK', '7.0.2'
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 RCT_NEW_ARCH_ENABLED=1',
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}
end
end