Skip to content

Commit

Permalink
Update react-native-geolocation.podspec (#297)
Browse files Browse the repository at this point in the history
PR adding new arch compatibility for newest RN version, same PR as e.g. here: react-native-cameraroll/react-native-cameraroll#577
  • Loading branch information
WoLewicki committed Feb 18, 2024
1 parent aa51e7e commit 0dc53c2
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions react-native-geolocation.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

Pod::Spec.new do |s|
s.name = "react-native-geolocation"
Expand All @@ -16,20 +15,11 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/react-native-community/react-native-geolocation.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm}"

s.dependency 'React-Core'
s.frameworks = 'CoreLocation'

if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}

s.dependency "React-Codegen"
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s)
else
s.dependency "React-Core"
end
end

0 comments on commit 0dc53c2

Please sign in to comment.