Skip to content

Conversation

marco-saia-datadog
Copy link
Member

@marco-saia-datadog marco-saia-datadog commented Sep 9, 2025

What does this PR do?

The core SDK package handles the consumeWebviewEvent function that is used to support WebView integration on Android new architecture, using the legacy approach.

This PR moves this function to the @datadog/mobile-react-native-webview module by creating a new Turbo Module.

TODO

  • Manual testing
    • Android old-arch
    • iOS old-arch
    • Android new-arch
    • iOS new-arch

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 force-pushed the marcosaia/RUM-11204/refactor-webview-logic branch from 6b9533b to ffb43c8 Compare September 9, 2025 13:57
@marco-saia-datadog marco-saia-datadog self-assigned this Sep 9, 2025
@marco-saia-datadog marco-saia-datadog force-pushed the marcosaia/RUM-11204/use-core-sdk-native-instance-on-ios branch from b7a6e5b to 008e733 Compare September 22, 2025 15:14
@sbarrio sbarrio force-pushed the marcosaia/RUM-11204/use-core-sdk-native-instance-on-ios branch from 008e733 to 93aa612 Compare September 23, 2025 09:14
Base automatically changed from marcosaia/RUM-11204/use-core-sdk-native-instance-on-ios to feature/v3 September 29, 2025 13:34
@marco-saia-datadog marco-saia-datadog marked this pull request as ready for review September 29, 2025 13:35
@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner September 29, 2025 13:35
@marco-saia-datadog marco-saia-datadog marked this pull request as draft September 29, 2025 13:36
}
}

class MockOnCoreInitializedListener {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Since we renamed the others to onSDKInitializedListener perhaps we should do the same with this one.

// Pods
//
// Created by Marco Saia on 08.09.25.
//
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: We should use the base Datadog header for this too, right?

Copy link
Contributor

@sbarrio sbarrio left a comment

Choose a reason for hiding this comment

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

Left a few minor comments, but it looks fine to me. Nice job!

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