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

[RUM-6028, 0.75 Support] DrawableUtils based on RN version #751

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

marco-saia-datadog
Copy link
Member

What does this PR do?

Conditionally builds different DrawableUtils for different RN versions, to grant compatibility with RN 0.75+.

Motivation

  • ReactViewImageBackgroundDrawable was deprecated in version 0.75 and has already been removed in develop
  • CSSBackgroundDrawable has been introduced in its place (and it is currently marked as unstable, so it could change in the future)

Since Session Replay heavily relies on React Native classes, and they can change significantly between different versions, this PR aims to introduce version-specific source sets in the form of:

  • rn[version]: classes for specific minor versions of RN
  • rnlegacy: classes for all previous versions

The naming and folder structure can be changed.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@marco-saia-datadog marco-saia-datadog marked this pull request as ready for review December 17, 2024 14:11
@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner December 17, 2024 14:11
@marco-saia-datadog marco-saia-datadog force-pushed the marcosaia/RUM-6028/sr-rn-75-support branch from f4e0644 to caf4235 Compare December 17, 2024 14:29
@marco-saia-datadog marco-saia-datadog merged commit 509f289 into develop Dec 17, 2024
10 checks passed
@marco-saia-datadog marco-saia-datadog deleted the marcosaia/RUM-6028/sr-rn-75-support branch December 17, 2024 15:29
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