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

Fix Flipper by moving FB_SONARKIT_ENABLED to RCTAppDelegate #37240

Closed
wants to merge 3 commits into from

Conversation

djMax
Copy link

@djMax djMax commented May 3, 2023

Summary:

An out-of-the-box react-native init project no longer enables Flipper properly as of 0.72.0-rc1.

Changelog:

[IOS] [FIXED] Fix Flipper by moving podfile modification of preprocessor def FB_SONARKIT_ENABLED from React-Core to React-RCTAppDelegate where it is now used.

Test Plan:

Generated an app and verified Flipper cannot see the app. Made the modification and generated another app and verified Flipper now sees it and can enable plugins. Verified that runtime (non-test) use of FB_SONARKIT_ENABLED is limited to Libraries/AppDelegate in this project.

@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 May 3, 2023
@analysis-bot
Copy link

analysis-bot commented May 3, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,628,615 +2
android hermes armeabi-v7a 7,940,710 +2
android hermes x86 9,115,600 +3
android hermes x86_64 8,970,205 +2
android jsc arm64-v8a 9,192,773 +2
android jsc armeabi-v7a 8,382,331 +2
android jsc x86 9,251,114 +2
android jsc x86_64 9,509,354 +0

Base commit: 6d886a8
Branch: main

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djMax Thank you for taking care of this (and sorry for this misstep on our side... 🤦)

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@djMax
Copy link
Author

djMax commented May 4, 2023

Life goals! Happy to be able contribute, even if it's tiny.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 4, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 34d5212.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
…#37240)

Summary:
An out-of-the-box react-native init project no longer enables Flipper properly as of 0.72.0-rc1.

## Changelog:

[IOS] [FIXED] Fix Flipper by moving podfile modification of preprocessor def `FB_SONARKIT_ENABLED` from React-Core to React-RCTAppDelegate where it is now used.

Pull Request resolved: facebook#37240

Test Plan: Generated an app and verified Flipper cannot see the app. Made the modification and generated another app and verified Flipper now sees it and can enable plugins. Verified that runtime (non-test) use of FB_SONARKIT_ENABLED is limited to Libraries/AppDelegate in this project.

Reviewed By: dmytrorykun

Differential Revision: D45563282

Pulled By: cipolleschi

fbshipit-source-id: d760c5ae123cc7c967b19c6c626801d6db28d052
kelset pushed a commit that referenced this pull request May 10, 2023
Summary:
An out-of-the-box react-native init project no longer enables Flipper properly as of 0.72.0-rc1.

## Changelog:

[IOS] [FIXED] Fix Flipper by moving podfile modification of preprocessor def `FB_SONARKIT_ENABLED` from React-Core to React-RCTAppDelegate where it is now used.

Pull Request resolved: #37240

Test Plan: Generated an app and verified Flipper cannot see the app. Made the modification and generated another app and verified Flipper now sees it and can enable plugins. Verified that runtime (non-test) use of FB_SONARKIT_ENABLED is limited to Libraries/AppDelegate in this project.

Reviewed By: dmytrorykun

Differential Revision: D45563282

Pulled By: cipolleschi

fbshipit-source-id: d760c5ae123cc7c967b19c6c626801d6db28d052
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. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants