Skip to content

Commit

Permalink
Allow PRODUCTION=1 pod install
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Jul 20, 2022
1 parent 27fe6f1 commit 7b088b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ require_relative '../node_modules/react-native/scripts/native_modules'
platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

production = ENV["PRODUCTION"] == "1"

target 'HelloWorld' do
config = use_native_modules!

Expand All @@ -12,6 +14,7 @@ target 'HelloWorld' do

use_react_native!(
:path => config[:reactNativePath],
:production => production,
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
Expand Down

0 comments on commit 7b088b1

Please sign in to comment.