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

[PLAT-11900] Move BugsnagReactNative from objective-c to objective c++ #2113

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

yousif-bugsnag
Copy link
Contributor

Goal

Fixes an iOS build error in React Native when New Architecture is enabled (reported in #2101).

A fix introduced in React Native 0.73.5 (and backported to 0.72.12) ensures that the RCT_NEW_ARCH_ENABLED flag is now passed down to libraries where it was not previously (facebook/react-native#43088). This means that anything imports the generated spec header must be Objective-C++.

Design

Moved BugsnagReactNative from Objective-C to Objective-C++.

Testing

Upgraded the React Native 0.72 test fixture to 0.72.12 which contains the aforementioned fix.

Copy link

github-actions bot commented Apr 8, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 43.69 kB 13.41 kB
After 43.69 kB 13.41 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 4219b6c

Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants