From 300ea0868522bd0069b280b4d2ae9222097d1ff4 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 24 Jun 2025 19:42:55 +0100 Subject: [PATCH] fix: update ReactCodegen test snapshot --- .../generate-artifacts-executor-test.js.snap | 134 ++++++------------ 1 file changed, 46 insertions(+), 88 deletions(-) diff --git a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap index 097e16d4a9e..5ab5a3f6bed 100644 --- a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap +++ b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap @@ -415,51 +415,30 @@ boost_compiler_flags = Helpers::Constants.boost_config[:compiler_flags] header_search_paths = [] framework_search_paths = [] -if ReactNativeCoreUtils.build_rncore_from_source() +header_search_paths = [ + \\"\\\\\\"$(PODS_ROOT)/ReactNativeDependencies\\\\\\"\\", + \\"\\\\\\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-Fabric\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/Yoga\\\\\\"\\", + \\"\\\\\\"$(PODS_TARGET_SRCROOT)\\\\\\"\\", +] - header_search_paths = [ - \\"\\\\\\"$(PODS_ROOT)/ReactNativeDependencies\\\\\\"\\", - \\"\\\\\\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-Fabric\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/Yoga\\\\\\"\\", - \\"\\\\\\"$(PODS_TARGET_SRCROOT)\\\\\\"\\", - ] - - if use_frameworks - ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-Fabric\\", \\"React_Fabric\\", [\\"react/renderer/components/view/platform/cxx\\"]) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-FabricImage\\", \\"React_FabricImage\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-graphics\\", \\"React_graphics\\", [\\"react/renderer/graphics/platform/ios\\"])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"ReactCommon\\", \\"ReactCommon\\", [\\"react/nativemodule/core\\"])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-NativeModulesApple\\", \\"React_NativeModulesApple\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-RCTFabric\\", \\"RCTFabric\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-debug\\", \\"React_debug\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-rendererdebug\\", \\"React_rendererdebug\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-utils\\", \\"React_utils\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-featureflags\\", \\"React_featureflags\\", [])) - .each { |search_path| - header_search_paths << \\"\\\\\\"#{search_path}\\\\\\"\\" - } - end -else - header_search_paths = [ - \\"$(PODS_ROOT)/Headers/Public/React-Core-prebuilt/ReactCommon\\", - \\"$(PODS_ROOT)/ReactNativeDependencies\\", - \\"$(REACT_NATIVE_PATH)/Libraries\\", - \\"$(REACT_NATIVE_PATH)/Libraries/FBLazyVector\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/Libraries\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/Libraries/AppDelegate\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/RCTDeprecation\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon/jsi\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon/yoga\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/react/nativemodule/core\\", - \\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\", - \\"\${REACT_NATIVE_PATH}/ReactCommon/jsi\\", - \\"\${REACT_NATIVE_PATH}/ReactCommon/yoga\\", - ] -end +if use_frameworks + ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-Fabric\\", \\"React_Fabric\\", [\\"react/renderer/components/view/platform/cxx\\"]) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-FabricImage\\", \\"React_FabricImage\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-graphics\\", \\"React_graphics\\", [\\"react/renderer/graphics/platform/ios\\"])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"ReactCommon\\", \\"ReactCommon\\", [\\"react/nativemodule/core\\"])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-NativeModulesApple\\", \\"React_NativeModulesApple\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-RCTFabric\\", \\"RCTFabric\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-debug\\", \\"React_debug\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-rendererdebug\\", \\"React_rendererdebug\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-utils\\", \\"React_utils\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-featureflags\\", \\"React_featureflags\\", [])) + .each { |search_path| + header_search_paths << \\"\\\\\\"#{search_path}\\\\\\"\\" + } + end Pod::Spec.new do |s| s.name = \\"ReactCodegen\\" @@ -920,51 +899,30 @@ boost_compiler_flags = Helpers::Constants.boost_config[:compiler_flags] header_search_paths = [] framework_search_paths = [] -if ReactNativeCoreUtils.build_rncore_from_source() +header_search_paths = [ + \\"\\\\\\"$(PODS_ROOT)/ReactNativeDependencies\\\\\\"\\", + \\"\\\\\\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-Fabric\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\\\\\\"\\", + \\"\\\\\\"$(PODS_ROOT)/Headers/Private/Yoga\\\\\\"\\", + \\"\\\\\\"$(PODS_TARGET_SRCROOT)\\\\\\"\\", +] - header_search_paths = [ - \\"\\\\\\"$(PODS_ROOT)/ReactNativeDependencies\\\\\\"\\", - \\"\\\\\\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-Fabric\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\\\\\\"\\", - \\"\\\\\\"$(PODS_ROOT)/Headers/Private/Yoga\\\\\\"\\", - \\"\\\\\\"$(PODS_TARGET_SRCROOT)\\\\\\"\\", - ] - - if use_frameworks - ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-Fabric\\", \\"React_Fabric\\", [\\"react/renderer/components/view/platform/cxx\\"]) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-FabricImage\\", \\"React_FabricImage\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-graphics\\", \\"React_graphics\\", [\\"react/renderer/graphics/platform/ios\\"])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"ReactCommon\\", \\"ReactCommon\\", [\\"react/nativemodule/core\\"])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-NativeModulesApple\\", \\"React_NativeModulesApple\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-RCTFabric\\", \\"RCTFabric\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-debug\\", \\"React_debug\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-rendererdebug\\", \\"React_rendererdebug\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-utils\\", \\"React_utils\\", [])) - .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-featureflags\\", \\"React_featureflags\\", [])) - .each { |search_path| - header_search_paths << \\"\\\\\\"#{search_path}\\\\\\"\\" - } - end -else - header_search_paths = [ - \\"$(PODS_ROOT)/Headers/Public/React-Core-prebuilt/ReactCommon\\", - \\"$(PODS_ROOT)/ReactNativeDependencies\\", - \\"$(REACT_NATIVE_PATH)/Libraries\\", - \\"$(REACT_NATIVE_PATH)/Libraries/FBLazyVector\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/Libraries\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/Libraries/AppDelegate\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/RCTDeprecation\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon/jsi\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/ReactCommon/yoga\\", - \\"\${PODS_ROOT}/Headers/Public/React-Core-prebuilt/react/nativemodule/core\\", - \\"\${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\\", - \\"\${REACT_NATIVE_PATH}/ReactCommon/jsi\\", - \\"\${REACT_NATIVE_PATH}/ReactCommon/yoga\\", - ] -end +if use_frameworks + ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-Fabric\\", \\"React_Fabric\\", [\\"react/renderer/components/view/platform/cxx\\"]) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-FabricImage\\", \\"React_FabricImage\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-graphics\\", \\"React_graphics\\", [\\"react/renderer/graphics/platform/ios\\"])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"ReactCommon\\", \\"ReactCommon\\", [\\"react/nativemodule/core\\"])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-NativeModulesApple\\", \\"React_NativeModulesApple\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-RCTFabric\\", \\"RCTFabric\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-debug\\", \\"React_debug\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-rendererdebug\\", \\"React_rendererdebug\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-utils\\", \\"React_utils\\", [])) + .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks(\\"PODS_CONFIGURATION_BUILD_DIR\\", \\"React-featureflags\\", \\"React_featureflags\\", [])) + .each { |search_path| + header_search_paths << \\"\\\\\\"#{search_path}\\\\\\"\\" + } + end Pod::Spec.new do |s| s.name = \\"ReactCodegen\\"