Skip to content

Commit

Permalink
Add fmt to third-party-podspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Jul 4, 2023
1 parent bcb8e75 commit 3470da1
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 233 deletions.
24 changes: 24 additions & 0 deletions packages/react-native/third-party-podspecs/fmt.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Pod::Spec.new do |spec|
spec.name = 'fmt'
spec.version = '6.2.1'
spec.license = { :type => 'MIT' }
spec.homepage = 'http://github.com/fmtlib/fmt'
spec.summary = '{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams.'
spec.authors = { "The fmt contributors": "https://github.com/fmtlib/fmt/issues" }
spec.source = { :git => 'https://github.com/fmtlib/fmt.git', :tag => '7.1.3' }

# Pinning to the same version as React.podspec.
spec.platforms = { :ios => '11.0', :osx => '10.14', :visionos => '1.0' }
spec.libraries = 'c++'
spec.public_header_files = 'include/fmt/*.{hpp,h}'
spec.header_mappings_dir = 'include'
spec.source_files = 'src/*.cc',
'include/fmt/*.{hpp,h}'
spec.exclude_files = 'src/os.cc'
spec.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "${PODS_TARGET_SRCROOT}/include",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
"USE_HEADERMAP" => "NO",
"ALWAYS_SEARCH_USER_PATHS" => "NO"
}
end
3 changes: 2 additions & 1 deletion packages/rn-tester/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def pods(target_name, options = {}, use_flipper: false)

# Hermes is now enabled by default.
# The following line will only disable Hermes if the USE_HERMES envvar is SET to a value other than 1 (e.g. USE_HERMES=0).
hermes_enabled = !ENV.has_key?('USE_HERMES') || ENV['USE_HERMES'] == '1'
# Temporarily disable hermes as it depends on libevent
hermes_enabled = false # !ENV.has_key?('USE_HERMES') || ENV['USE_HERMES'] == '1'
puts "Configuring #{target_name} with Fabric #{fabric_enabled ? "enabled" : "disabled"}.#{hermes_enabled ? " Using Hermes engine." : ""}"

if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
Expand Down
Loading

0 comments on commit 3470da1

Please sign in to comment.