Skip to content

!remove(react-native): Old SDK versions support - #984

Merged
krystofwoldrich merged 4 commits into
masterfrom
kw-remove-old-sdks-support
May 19, 2025
Merged

krystofwoldrich merged 4 commits into
masterfrom
kw-remove-old-sdks-support

Conversation

@krystofwoldrich

@krystofwoldrich krystofwoldrich commented May 5, 2025 •

Copy link
Copy Markdown
Contributor

:basecamp: Based on #983

The React Native wizard supports multiple Sentry RN SDKs versions (v5 v6) and we are currently working on a new major version v7 and related to that this PR cleans up the old versions support.

The wizard is ment to setup new projects, new project should use the latest version. We don't intentionally break compatibility with older SDK version, but as you can see in this PR, the support of older versions required a lot of extra logic.

New supported version is RN SDK 6.12.0+

This is a breaking change.

@codecov

codecov Bot commented May 5, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 6.25000% with 30 lines in your changes missing coverage. Please review.

Project coverage is 27.72%. Comparing base (2005f0f) to head (0be8d2d).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/react-native/react-native-wizard.ts 6.25% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
+ Coverage   27.55%   27.72%   +0.17%     
==========================================
  Files         129      129              
  Lines       14096    13854     -242     
  Branches      835      831       -4     
==========================================
- Hits         3884     3841      -43     
+ Misses      10194     9995     -199     
  Partials       18       18              
Flag Coverage Δ
unit-tests 27.72% <6.25%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-old-sdks-support branch from b9fd99f to 77f549c Compare May 5, 2025 14:07
@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-rn-uninstall branch from ba032e4 to 6265bba Compare May 5, 2025 14:08
@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-old-sdks-support branch from 77f549c to 04d1565 Compare May 5, 2025 14:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes support for old SDK versions by eliminating CLI-based patching in favor of bundled scripts and updates the supported SDK version range.

  • Removed tests and functions related to CLI-based patching in the Xcode integration.
  • Updated the SDK support range in the React Native wizard and removed associated fallback logic.
  • Removed the Metro serializer patch function in favor of a simplified configuration.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/react-native/xcode.test.ts Removed tests for the deprecated CLI-based patch functionality.
src/react-native/xcode.ts Removed functions for CLI-based patching and fallback behavior.
src/react-native/react-native-wizard.ts Updated SDK range and simplified session replay/feedback logic.
src/react-native/metro.ts Removed the legacy Metro serializer patching function.
CHANGELOG.md Updated changelog to reflect removal of old SDK support.

@krystofwoldrich

Copy link
Copy Markdown
Contributor Author

Angular Job fail is unrelated to this PR, likely related to the momental Sentry unavailability.

@krystofwoldrich
krystofwoldrich marked this pull request as ready for review May 5, 2025 14:29
@krystofwoldrich krystofwoldrich changed the title WIP: remove old SDK versions support remove(react-native): Old SDK versions support May 5, 2025
Comment thread src/react-native/react-native-wizard.ts

@antonis antonis left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀

The wizard is ment to setup new projects, new project should use the latest version.

This makes a lot of sense ➕

Angular Job fail is unrelated to this PR, likely related to the momental Sentry unavailability.

Indeed! Rerunning the checks today worked 👍

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same ask asks as in #983 (review) but LGTM!

@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-rn-uninstall branch from 6265bba to 11d2f80 Compare May 19, 2025 14:18
@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-old-sdks-support branch from 1c4ecfa to 3248739 Compare May 19, 2025 14:20
@krystofwoldrich krystofwoldrich changed the title remove(react-native): Old SDK versions support !remove(react-native): Old SDK versions support May 19, 2025
Base automatically changed from kw-remove-rn-uninstall to master May 19, 2025 14:34
@krystofwoldrich
krystofwoldrich force-pushed the kw-remove-old-sdks-support branch from 39457a7 to 0be8d2d Compare May 19, 2025 14:36
@krystofwoldrich
krystofwoldrich merged commit 0e3a41a into master May 19, 2025
@krystofwoldrich
krystofwoldrich deleted the kw-remove-old-sdks-support branch May 19, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants