From a830223f9527360189690a7e072c0d74f4638e39 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Fri, 28 Jul 2023 15:45:53 -0700 Subject: [PATCH] Fix OSS gradle build for ReactCommon/react/renderer/graphics (#38644) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38644 It's likely that some components consuming react/renderer/graphics headers are consuming the wrong PlatformColorParser header, since the implementation under platform/android is quite different from the implementation under platform/cxx. This change should hoist the correct headers to react/renderer/graphics when building Fabric in OSS. ## Changelog: [General] [Fixed] - Fix headers for react/renderer/graphics for Fabric Android Reviewed By: cortinico, NickGerleman Differential Revision: D47821848 fbshipit-source-id: a2f2b057aa73c1c6b4a00e2c3e508cebb6e6facf --- packages/react-native/ReactAndroid/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/build.gradle b/packages/react-native/ReactAndroid/build.gradle index ebc6c0f94bb..08313ab7dee 100644 --- a/packages/react-native/ReactAndroid/build.gradle +++ b/packages/react-native/ReactAndroid/build.gradle @@ -109,7 +109,7 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa "react_render_graphics", [ new Pair("../ReactCommon/react/renderer/graphics/", "react/renderer/graphics/"), - new Pair("../ReactCommon/react/renderer/graphics/platform/cxx/", ""), + new Pair("../ReactCommon/react/renderer/graphics/platform/android/", ""), ] ), new PrefabPreprocessingEntry(