Skip to content

Commit

Permalink
Align USE_FRAMEWORKS usage between RNTester and the Template (#35790)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #35790

This diff apply to RNTester the same logic we have in the template to control the `use_framework!` setting

This is a preliminary change to solve the `use_frameworks!` problems in the New Architecture for both the Template and RNTester.

## Changelog:
[iOS][Changed] - Align RNTester usage of the USE_FRAMEWORKS flag to the template

Reviewed By: cortinico, dmytrorykun

Differential Revision: D42387701

fbshipit-source-id: 28baf5a65b727269d55382de286a17de30e8895b
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Jan 23, 2023
1 parent 1bab3e2 commit 3367b6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/rn-tester/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ platform :ios, min_ios_version_supported

prepare_react_native_project!

USE_FRAMEWORKS = ENV['USE_FRAMEWORKS'] == '1'
IN_CI = ENV['CI'] == 'true'

@prefix_path = "../.."

linkage = ENV['USE_FRAMEWORKS']
USE_FRAMEWORKS = linkage != nil
if USE_FRAMEWORKS
puts "Installing pods with use_frameworks!"
use_frameworks!
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

def pods(target_name, options = {}, use_flipper: !IN_CI && !USE_FRAMEWORKS)
Expand Down

0 comments on commit 3367b6a

Please sign in to comment.