Skip to content

Commit

Permalink
Cleaner syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Mar 27, 2020
1 parent 6340fa7 commit 42dc3aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fastlane/lib/helper/update_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def update_rnbranch_xcodeproj(version)
rnbranch_option = %[RNBRANCH_VERSION=@\\"#{version}\\"]
project = Xcodeproj::Project.open 'ios/RNBranch.xcodeproj'
project.build_configurations.each do |config|
options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
options ||= []
options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] || []
options = options.reject { |o| o =~ /^RNBRANCH_VERSION=/ }
options << rnbranch_option
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = options
Expand Down

0 comments on commit 42dc3aa

Please sign in to comment.