-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Wrap iOS Flipper code with #if #29646
Conversation
Base commit: 208ebed |
Base commit: 208ebed |
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.
Why does FB_SONARKIT_ENABLED
evaluate to true when it shouldn’t?
I think it’s less of an issue in this specific case, as this is at least in the user’s codebase, but I’m conceptually against gating any of these things based on DEBUG
. I.e. it should be up to the dev to decide in what configuration this is enabled, but we can provide sane defaults of course.
@alloy I feel like the |
What about renaming the macro to eg |
I like that better! |
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 7 days with no activity. |
Summary
Fixes #29336
Flipper should only be instantiated when in DEBUG regardless if FB_SONARKIT_ENABLED is enabled.
Changelog
[iOS] [Changed] - Make sure Flipper only instantiated in DEBUG mode
Test Plan
Built the template app and Flipper integration still works