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

Wrap iOS Flipper code with #if #29646

Closed
wants to merge 1 commit into from
Closed

Conversation

safaiyeh
Copy link
Contributor

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

@safaiyeh safaiyeh requested a review from alloy August 14, 2020 06:48
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 14, 2020
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Aug 14, 2020
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,003,030 0
android hermes armeabi-v7a 6,666,643 0
android hermes x86 7,423,355 0
android hermes x86_64 7,314,247 0
android jsc arm64-v8a 9,162,798 0
android jsc armeabi-v7a 8,818,528 0
android jsc x86 9,011,190 0
android jsc x86_64 9,588,283 0

Base commit: 208ebed

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 208ebed

Copy link
Contributor

@alloy alloy left a 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.

@safaiyeh
Copy link
Contributor Author

@alloy I feel like the FB_SONARKIT_ENABLED variable is a bit unclear to user land. The only use for it is for Flipper. While DEBUG makes more sense, as you wouldn't want Flipper integrated to your production app.

@alloy
Copy link
Contributor

alloy commented Aug 14, 2020

What about renaming the macro to eg FLIPPER_ENABLED?

@safaiyeh
Copy link
Contributor Author

I like that better!

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jun 24, 2023
@github-actions
Copy link

github-actions bot commented Jul 1, 2023

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined symbols for architecture arm64 - FlipperKitNetworkPlugin
6 participants