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

Use GCC_PREPROCESSOR_DEFINITIONS to set FB_SONARKIT_ENABLED #33972

Closed
wants to merge 2 commits into from

Conversation

janicduplessis
Copy link
Contributor

@janicduplessis janicduplessis commented Jun 7, 2022

Summary

OTHER_CFLAGS doesn't seem to work when the file is imported from Objc++. This causes flipper to not be included.

Changelog

[iOS] [Fixed] - Use GCC_PREPROCESSOR_DEFINITIONS to set FB_SONARKIT_ENABLED

Test Plan

Tested the change in an app. Used a breakpoint to see that flipper code is not executed before this change, and is after. Also made sure other GCC_PREPROCESSOR_DEFINITIONS set by cocoapods are still properly inherited.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jun 7, 2022
@react-native-bot react-native-bot added Bug Platform: iOS iOS applications. labels Jun 7, 2022
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,782,262 +0
android hermes armeabi-v7a 7,172,079 +0
android hermes x86 8,092,955 +0
android hermes x86_64 8,068,944 +0
android jsc arm64-v8a 9,649,085 +0
android jsc armeabi-v7a 8,407,885 +0
android jsc x86 9,600,644 +0
android jsc x86_64 10,193,678 +0

Base commit: 43f831b
Branch: main

@analysis-bot
Copy link

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

Base commit: 43f831b
Branch: main

@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @janicduplessis in 77e6bff.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 8, 2022
@janicduplessis janicduplessis deleted the patch-15 branch June 8, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Merged This PR has been merged. Platform: iOS iOS applications. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants