Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
QSuraj committed Jan 31, 2022
1 parent 69849b1 commit a99d3b0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions VisionCamera.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ rescue
end
rnVersion = reactVersion.split('.')[1]

folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DRNVERSION=' + rnVersion
folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
folly_version = '2021.04.26.00'
folly_version = '2020.01.13.00'
boost_compiler_flags = '-Wno-documentation'

Pod::Spec.new do |s|
Expand All @@ -39,6 +39,13 @@ Pod::Spec.new do |s|

s.requires_arc = true

s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
s.xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"HEADER_SEARCH_PATHS" => "$(inherited) \"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
"OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags
}

# All source files that should be publicly visible
# Note how this does not include headers, since those can nameclash.
s.source_files = [
Expand All @@ -62,6 +69,7 @@ Pod::Spec.new do |s|
]

s.dependency "React-callinvoker"
s.dependency "React"
s.dependency "React-Core"
s.dependency "ReactCommon/turbomodule/core"
s.dependency "Folly", folly_version
end

0 comments on commit a99d3b0

Please sign in to comment.