@lodev09/react-native-true-sheet 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -16,6 +16,13 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
20
|
+
s.pod_target_xcconfig = {
|
|
21
|
+
# Detect if new arch is enabled in Swift code
|
|
22
|
+
"OTHER_SWIFT_FLAGS" => "-DRCT_NEW_ARCH_ENABLED"
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
19
26
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
27
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
28
|
if respond_to?(:install_modules_dependencies, true)
|
|
@@ -26,10 +33,10 @@ Pod::Spec.new do |s|
|
|
|
26
33
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
27
34
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
28
35
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
-
s.pod_target_xcconfig
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
s.pod_target_xcconfig = s.pod_target_xcconfig | {
|
|
37
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
38
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
39
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
33
40
|
}
|
|
34
41
|
s.dependency "React-RCTFabric"
|
|
35
42
|
s.dependency "React-Codegen"
|