From c68955317d392b7dedf3e417cc66dfce851316c7 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 15 Feb 2024 03:45:38 -0800 Subject: [PATCH] Generate the RCTModulesConformingToProtocolsProvider only for react-native core (#43046) Summary: This fixes a problem where RCTModulesConformingToProtocolsProvider was generated also in Library space. ## Changelog: [iOS][Fixed] - Generate the RCTModulesConformingToProtocolsProvider only once in user space ## Facebook See comment [here](https://www.internalfb.com/diff/D53441411?dst_version_fbid=750944970297544&transaction_fbid=719673583317629) Reviewed By: dmytrorykun Differential Revision: D53807045 --- .../react-native/scripts/codegen/generate-artifacts-executor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/codegen/generate-artifacts-executor.js b/packages/react-native/scripts/codegen/generate-artifacts-executor.js index a3bf875c534c06..92434047d5a6a5 100644 --- a/packages/react-native/scripts/codegen/generate-artifacts-executor.js +++ b/packages/react-native/scripts/codegen/generate-artifacts-executor.js @@ -676,9 +676,9 @@ function execute(projectRoot, targetPlatform, baseOutputPath) { ); createComponentProvider(schemas, supportedApplePlatforms); + generateCustomURLHandlers(libraries, outputPath); } - generateCustomURLHandlers(libraries, outputPath); cleanupEmptyFilesAndFolders(outputPath); } } catch (err) {