Skip to content
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

[HOLD] [iOS] Add --enabler-flipper flag #958

Conversation

alloy
Copy link
Member

@alloy alloy commented Feb 12, 2020

Summary:

As mentioned here, this makes it so there’s a clearer way to control whether or not to compile Flipper client in the user’s application.

This will set the FB_FLIPPER_ENABLED and FB_SONARKIT_ENABLED CPP definitions to 1, which, with the default RN template will compile the flipper bits in.

Depends on this change: alloy/react-native@ae4f936

Test Plan:

The right xcodebuild command is invoked:

react-native run-ios --enable-flipper
info Found Xcode workspace "TestFlipper.xcworkspace"
info Building (using 'xcodebuild -workspace TestFlipper.xcworkspace -configuration Debug -scheme TestFlipper -destination id="60E7F277-DC13-46B8-ADFB-7C5C9BC01274" GCC_PREPROCESSOR_DEFINITIONS="\$(inherited) FB_SONARKIT_ENABLED=1 FB_FLIPPER_ENABLED=1"')

…and indeed the application only shows up in Flipper desktop when it’s enabled.

This will set the `FB_FLIPPER_ENABLED` and `FB_SONARKIT_ENABLED` CPP
definitions to `1`, which with the default RN template will compile the
flipper bits in.
@alloy alloy changed the title [iOS] Add --enabler-flipper flag [HOLD] [iOS] Add --enabler-flipper flag Feb 12, 2020
@alloy
Copy link
Member Author

alloy commented Feb 12, 2020

Having written all this, I’m not so sure we should do it like this after all... Will follow-up on facebook/react-native#27565.

@alloy
Copy link
Member Author

alloy commented Feb 13, 2020

Superseded by facebook/react-native#28044

@alloy alloy closed this Feb 13, 2020
@thymikee
Copy link
Member

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants