From c9a5090f48d578f5ee0e032a81f1c15392e3d354 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 13 Dec 2022 02:22:32 -0800 Subject: [PATCH] Expose ReactAndroid/src/main/jni/react/cxxcomponents via prefab (#35619) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35619 Reference https://github.com/reactwg/react-native-releases/discussions/41#discussioncomment-4353534 I'm exposing `ReactAndroid/src/main/jni/react/cxxcomponents` to be consumed via prefab. It will be available to both: `react_nativemodule_core` and `reactnativejni` Changelog: [Internal] [Changed] - Expose ReactAndroid/src/main/jni/react/cxxcomponents via prefab Reviewed By: cipolleschi Differential Revision: D41965512 fbshipit-source-id: 3a5a7473267e2e161d9d7fb0e8dfa74593b47b6e --- ReactAndroid/build.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 34a23ab963deac..0d1cacd7faae91 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -117,7 +117,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa ), new PrefabPreprocessingEntry( "fabricjni", - new Pair("src/main/jni/react/fabric", "") + [ + new Pair("src/main/jni/react/fabric", ""), + new Pair("src/main/jni/react/cxxcomponents", "react/cxxcomponents/") + ] ), new PrefabPreprocessingEntry( "react_render_mapbuffer", @@ -205,7 +208,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa ), new PrefabPreprocessingEntry( "reactnativejni", - new Pair("src/main/jni/react/jni", "react/jni/"), + [ + new Pair("src/main/jni/react/jni", "react/jni/"), + new Pair("../ReactCommon/cxxreact/", "cxxreact/"), + ] ), ] )