-
Notifications
You must be signed in to change notification settings - Fork 95
fix(ios): make new_architecture_enabled?
respect RCT_NEW_ARCH_ENABLED=0
#2072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
new_arch_enabled?
new_architecture_enabled?
reading RCT_NEW_ARCH_ENABLED
environment variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this. Would you mind adding some test cases here as well:
def test_new_architecture_enabled? |
new_architecture_enabled?
reading RCT_NEW_ARCH_ENABLED
environment variablenew_architecture_enabled?
respect RCT_NEW_ARCH_ENABLED=0
Added a test and rebased to follow the conventional commit / contributing guidelines 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again ❤️
Description
It seems to me the read of the
RCT_NEW_ARCH_ENABLED
environment variable is broken:prints
I.e. when setting
RCT_NEW_ARCH_ENABLED
to0
,new_architecture_enabled?
returns the string"0"
which is truthy.Platforms affected
Test plan
RCT_NEW_ARCH_ENABLED=0 pod install
and see how theRCT_NEW_ARCH_ENABLED=1
is incorrectly appended to the "OTHER_CPLUSPLUSFLAGS" on the Xcode project.