From 77752fc4037e66d5b0a5851bae79c4d3285ed334 Mon Sep 17 00:00:00 2001 From: LeoTM <1881059+leotm@users.noreply.github.com> Date: Fri, 22 Jul 2022 02:28:07 -0700 Subject: [PATCH] Update Podfile for `PRODUCTION=1 pod install` (#34234) Summary: ### Mentioned - pr[main]: https://github.com/facebook/react-native/pull/33882 - discussion: https://github.com/reactwg/react-native-releases/discussions/21#discussioncomment-2945972 - pr[0.69-stable]: https://github.com/facebook/react-native/pull/34098 Close: https://github.com/facebook/react-native/issues/33764 Saw the issue ago couple wks too: https://github.com/leotm/react-native-template-new-architecture/issues/757 Fixed similarly: https://github.com/leotm/react-native-template-new-architecture/pull/791 ## Changelog [iOS] [Changed] - Update Podfile to allow `PRODUCTION=1 pod install` [CATEGORY] [TYPE] - Message Pull Request resolved: https://github.com/facebook/react-native/pull/34234 Test Plan: Everything builds and runs as expected Reviewed By: cortinico Differential Revision: D38029117 Pulled By: cipolleschi fbshipit-source-id: bdb58200a999cb66f1043a2feb670f9037c8e463 --- scripts/react_native_pods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/react_native_pods.rb b/scripts/react_native_pods.rb index 80f98c0a90c315..8390a3ab6d0e2a 100644 --- a/scripts/react_native_pods.rb +++ b/scripts/react_native_pods.rb @@ -37,7 +37,7 @@ def use_react_native! ( path: "../node_modules/react-native", fabric_enabled: false, new_arch_enabled: ENV['RCT_NEW_ARCH_ENABLED'] == '1', - production: false, + production: ENV['PRODUCTION'] == '1', hermes_enabled: true, flipper_configuration: FlipperConfiguration.disabled, app_path: '..',