11require "json"
22
33package = JSON . parse ( File . read ( File . join ( __dir__ , "package.json" ) ) )
4- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
54
65Pod ::Spec . new do |s |
76 s . name = "Iterable-React-Native-SDK"
@@ -14,31 +13,10 @@ Pod::Spec.new do |s|
1413 s . platforms = { :ios => min_ios_version_supported }
1514 s . source = { :git => "https://github.com/Iterable/react-native-sdk.git" , :tag => "#{ s . version } " }
1615
17- s . source_files = "ios/**/*.{h,m,mm,swift}"
16+ s . source_files = "ios/**/*.{h,m,mm,swift,cpp }"
1817
19- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
21- if respond_to? ( :install_modules_dependencies , true )
22- install_modules_dependencies ( s )
23- else
24- s . dependency "React-Core"
18+ s . dependency "Iterable-iOS-SDK" , "6.5.4"
2519
26- # Don't install the dependencies when we run `pod install` in the old architecture.
27- if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
28- s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29- s . pod_target_xcconfig = {
30- "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
31- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
32- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33- }
34- s . dependency "React-Codegen"
35- s . dependency "RCT-Folly"
36- s . dependency "RCTRequired"
37- s . dependency "RCTTypeSafety"
38- s . dependency "ReactCommon/turbomodule/core"
39- end
40- end
20+ install_modules_dependencies ( s )
4121
42- s . dependency "Iterable-iOS-SDK" , "6.5.4"
43-
4422end
0 commit comments