mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b9f0bdd12d
Summary: Remove Xcode 15 `_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION` workaround for boost. If we update boost, we don't need the workaround anymore. This PR is based on https://github.com/facebook/react-native/issues/39552. Not sure how Meta internally deal with stacked PRs. This PR just adds a new commit based on https://github.com/facebook/react-native/issues/39552 anyway. ## Changelog: [IOS][CHANGED] - Remove Xcode 15 `_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION` workaround for boost Pull Request resolved: https://github.com/facebook/react-native/pull/39555 Test Plan: RNTester + Xcode 15 Reviewed By: cortinico Differential Revision: D49454494 Pulled By: cipolleschi fbshipit-source-id: aacabaa130b61598cf8bd206fdbb96d3b50ba74f
42 lines
1.5 KiB
Ruby
42 lines
1.5 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}/React-Codegen/React_Codegen.framework/Headers\"",
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
|
|
}
|
|
|
|
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
s.requires_arc = true
|
|
|
|
install_modules_dependencies(s)
|
|
|
|
# Enable codegen for this library
|
|
use_react_native_codegen!(s, {
|
|
:library_name => "MyNativeViewSpec",
|
|
:react_native_path => "../../react-native",
|
|
:js_srcs_dir => "./js",
|
|
:library_type => "components"
|
|
})
|
|
end
|