From ad9f0b0ab88218beb214859e0d85d50f9caa7bb5 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 22 Mar 2024 07:58:49 -0700 Subject: [PATCH] Include boost headers needed by `rrc_text` and `rrc_textinput` (#43608) Summary: Updates `PreparePrefabHeadersTask` to copy more headers from `boost`, specifically those required by `rrc_text` and `rrc_textinput`. ## Changelog: [ANDROID] [CHANGED] - Copy boost headers needed by `rrc_text` and `rrc_textinput` Pull Request resolved: https://github.com/facebook/react-native/pull/43608 Reviewed By: rshest Differential Revision: D55241345 Pulled By: cortinico fbshipit-source-id: e92164676ba78ee15b3678a55c9098b0c6214b69 --- .../internal/PreparePrefabHeadersTask.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt index f3b55e091104a5..6b07391768308c 100644 --- a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt +++ b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTask.kt @@ -54,6 +54,26 @@ abstract class PreparePrefabHeadersTask : DefaultTask() { it.include("boost/detail/workaround.hpp") it.include("boost/operators.hpp") it.include("boost/preprocessor/**/*.hpp") + // Headers needed for exposing rrc_text and rrc_textinput + it.include("boost/container_hash/**/*.hpp") + it.include("boost/detail/**/*.hpp") + it.include("boost/intrusive/**/*.hpp") + it.include("boost/iterator/**/*.hpp") + it.include("boost/move/**/*.hpp") + it.include("boost/mpl/**/*.hpp") + it.include("boost/mp11/**/*.hpp") + it.include("boost/describe/**/*.hpp") + it.include("boost/preprocessor/**/*.hpp") + it.include("boost/type_traits/**/*.hpp") + it.include("boost/utility/**/*.hpp") + it.include("boost/detail/workaround.hpp") + it.include("boost/assert.hpp") + it.include("boost/static_assert.hpp") + it.include("boost/cstdint.hpp") + it.include("boost/operators.hpp") + it.include("boost/config.hpp") + it.include("boost/utility.hpp") + it.include("boost/version.hpp") it.into(File(outputFolder.asFile, headerPrefix)) } }