Skip to content

Commit 578acee

Browse files
Update AmplifyRTNWebBrowser.podspec & AmplifyRTNPushNotification Podspec for React Native Builds (#14553)
* fix(rtn-push-notificaiton): update podspec to compile for rn-0.81, expo 54 * fix(rtn-web-browser): update podspec to compile for rn-0.81, expo 54 --------- Co-authored-by: Simone319 <[email protected]>
1 parent 11d4190 commit 578acee

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
lines changed

packages/rtn-push-notification/AmplifyRTNPushNotification.podspec

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,23 @@ Pod::Spec.new do |s|
1919
s.dependency "React-Core"
2020
s.dependency "AmplifyUtilsNotifications"
2121

22-
# Don't install the dependencies when we run `pod install` in the old architecture.
23-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
24-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
25-
s.pod_target_xcconfig = {
26-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
27-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
28-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
29-
}
30-
s.dependency "React-Codegen"
31-
s.dependency "RCT-Folly"
32-
s.dependency "RCTRequired"
33-
s.dependency "RCTTypeSafety"
34-
s.dependency "ReactCommon/turbomodule/core"
22+
if respond_to?(:install_modules_dependencies, true)
23+
install_modules_dependencies(s)
24+
else
25+
# Don't install the dependencies when we run `pod install` in the old architecture.
26+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
27+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
28+
s.pod_target_xcconfig = {
29+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
30+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
31+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
32+
}
33+
s.dependency "React-Codegen"
34+
s.dependency "RCT-Folly"
35+
s.dependency "RCTRequired"
36+
s.dependency "RCTTypeSafety"
37+
s.dependency "ReactCommon/turbomodule/core"
38+
end
3539
end
3640
end
41+

packages/rtn-web-browser/AmplifyRTNWebBrowser.podspec

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,23 @@ Pod::Spec.new do |s|
1818

1919
s.dependency "React-Core"
2020

21-
# Don't install the dependencies when we run `pod install` in the old architecture.
22-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
23-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
24-
s.pod_target_xcconfig = {
25-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
26-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
27-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
28-
}
29-
s.dependency "React-Codegen"
30-
s.dependency "RCT-Folly"
31-
s.dependency "RCTRequired"
32-
s.dependency "RCTTypeSafety"
33-
s.dependency "ReactCommon/turbomodule/core"
21+
if respond_to?(:install_modules_dependencies, true)
22+
install_modules_dependencies(s)
23+
else
24+
# Don't install the dependencies when we run `pod install` in the old architecture.
25+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
26+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
27+
s.pod_target_xcconfig = {
28+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
29+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
30+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
31+
}
32+
s.dependency "React-Codegen"
33+
s.dependency "RCT-Folly"
34+
s.dependency "RCTRequired"
35+
s.dependency "RCTTypeSafety"
36+
s.dependency "ReactCommon/turbomodule/core"
37+
end
3438
end
3539
end
40+

0 commit comments

Comments
 (0)