From a6076924bf43dff6cf4d38d51df279edba3882d0 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 22 Nov 2023 03:50:29 -0800 Subject: [PATCH] Remove unused flag in Old Architecture codegen (#41579) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41579 This change remove a flag that is unused. ## Changelog [Internal] - Remove unused Flag Reviewed By: dmytrorykun Differential Revision: D51493765 fbshipit-source-id: f8cbce991d80d4f51363cdd4f379e6b214b2b2df --- .../react_native_pods_utils/__tests__/script_phases.snap.rb | 2 -- .../scripts/react_native_pods_utils/script_phases.rb | 1 - 2 files changed, 3 deletions(-) diff --git a/packages/react-native/scripts/react_native_pods_utils/__tests__/script_phases.snap.rb b/packages/react-native/scripts/react_native_pods_utils/__tests__/script_phases.snap.rb index e0eadb87694..ff4604b259b 100644 --- a/packages/react-native/scripts/react_native_pods_utils/__tests__/script_phases.snap.rb +++ b/packages/react-native/scripts/react_native_pods_utils/__tests__/script_phases.snap.rb @@ -13,7 +13,6 @@ def snap_get_script_phases_with_codegen_discovery_with_config_file_dir() export RCT_SCRIPT_APP_PATH=$RCT_SCRIPT_POD_INSTALLATION_ROOT/ export RCT_SCRIPT_CONFIG_FILE_DIR=$RCT_SCRIPT_POD_INSTALLATION_ROOT/node_modules export RCT_SCRIPT_OUTPUT_DIR=$RCT_SCRIPT_POD_INSTALLATION_ROOT - export RCT_SCRIPT_FABRIC_ENABLED=true export RCT_SCRIPT_TYPE=withCodegenDiscovery SCRIPT_PHASES_SCRIPT="$RCT_SCRIPT_RN_DIR/scripts/react_native_pods_utils/script_phases.sh" @@ -32,7 +31,6 @@ def snap_get_script_phases_with_codegen_discovery_without_config_file_dir() export RCT_SCRIPT_APP_PATH=$RCT_SCRIPT_POD_INSTALLATION_ROOT/ export RCT_SCRIPT_CONFIG_FILE_DIR= export RCT_SCRIPT_OUTPUT_DIR=$RCT_SCRIPT_POD_INSTALLATION_ROOT - export RCT_SCRIPT_FABRIC_ENABLED=true export RCT_SCRIPT_TYPE=withCodegenDiscovery SCRIPT_PHASES_SCRIPT="$RCT_SCRIPT_RN_DIR/scripts/react_native_pods_utils/script_phases.sh" diff --git a/packages/react-native/scripts/react_native_pods_utils/script_phases.rb b/packages/react-native/scripts/react_native_pods_utils/script_phases.rb index eb1accba25a..78a381c403a 100644 --- a/packages/react-native/scripts/react_native_pods_utils/script_phases.rb +++ b/packages/react-native/scripts/react_native_pods_utils/script_phases.rb @@ -13,7 +13,6 @@ def get_script_phases_with_codegen_discovery(options) 'RCT_SCRIPT_APP_PATH' => "$RCT_SCRIPT_POD_INSTALLATION_ROOT/#{options[:relative_app_root]}", 'RCT_SCRIPT_CONFIG_FILE_DIR' => "#{options[:relative_config_file_dir] != '' ? "$RCT_SCRIPT_POD_INSTALLATION_ROOT/#{options[:relative_config_file_dir]}" : ''}", 'RCT_SCRIPT_OUTPUT_DIR' => "$RCT_SCRIPT_POD_INSTALLATION_ROOT", - 'RCT_SCRIPT_FABRIC_ENABLED' => "#{options[:fabric_enabled]}", 'RCT_SCRIPT_TYPE' => "withCodegenDiscovery", } return get_script_template(options[:react_native_path], export_vars)