mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6e2ba742ff
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45374 This change factors out the language standard in a separate constant so we can easily control it from a single place. There are only 2 exception to this: 1. hermes-engine: the podspec is used in CI and it has no access to the rct_cxx_language_standard variable 2. Yoga: it can be used as a separate pod, outside of React Native, so it makes sense to leave it alone. This change also fixes a problem where, in some setup, the language was set to C++14 ## Changelog [Internal] - Refactor Cxx language standard in a single constant Reviewed By: dmytrorykun, blakef Differential Revision: D59629061 fbshipit-source-id: 41eac64e47c14e239d8ee78bd88ea30af244d695
34 lines
1.3 KiB
Ruby
34 lines
1.3 KiB
Ruby
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "../" "package.json")))
|
|
|
|
boost_version = '1.83.0'
|
|
boost_compiler_flags = '-Wno-documentation'
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "MyNativeView"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.description = "my-native-view"
|
|
s.homepage = "https://github.com/sota000/my-native-view.git"
|
|
s.license = "MIT"
|
|
s.platforms = min_supported_versions
|
|
s.compiler_flags = boost_compiler_flags + ' -Wno-nullability-completeness'
|
|
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
s.source = { :git => "https://github.com/facebook/my-native-view.git", :tag => "#{s.version}" }
|
|
s.pod_target_xcconfig = {
|
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/boost\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCodegen/ReactCodegen.framework/Headers\"",
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard()
|
|
}
|
|
|
|
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
s.requires_arc = true
|
|
|
|
install_modules_dependencies(s)
|
|
end
|