bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

[PLAT-11399] Bugsnag CLI iOS x React Native CLI

Open joshedney opened this issue 1 year ago • 1 comments

Goal

Update the React Native CLI to install BugSnag CLI instead of the Source Maps package for the iOS/Xcode Integration.

An option has been added to the react native CLI that adds a task to the Xcode build phases to automate the upload of the iOS source maps when running an Xcode build.

If we detect that RN version is >= 0.69.0 we will set up the .xcode.env file to output the file source map files to our happy path ios/build/sourcemaps/.

If we detect that the RN version is < 0.69.0 we set up the extra arguments within the xcode build phase due to it not supporting the .xcode.env file.

Both options ensure the source map file is located where our bugsnag-cli expects it.

Changeset

Update the AutomateSymbolicationCommand.ts to install the BugSnag CLI package for the iOS integration.

Testing

Covered by CI

joshedney avatar Jan 24 '24 16:01 joshedney

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 43.80 kB 13.43 kB
After 43.80 kB 13.43 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by :no_entry_sign: dangerJS against a1def2d7f9b4b6e7bd236bab5526bfba68e1f2e1

github-actions[bot] avatar Jan 24 '24 16:01 github-actions[bot]