Skip to content

Mark the non-customer API that hybrid SDKs use #6039

In progress

Description

@runningcode

As we mark more SDK surface @ApiStatus.Internal ahead of v9 package moves, some types/methods are still consumed by hybrid SDKs (Flutter, React Native, etc.) even when they are not customer-facing.

@ApiStatus.Internal alone does not distinguish hybrid-facing surface from pure SDK plumbing, so hybrid consumers can be broken by a later relocate/remove pass.

Known examples called out during review of the utils Internal pass:

  • io.sentry.util.LoadClass
  • io.sentry.util.TracingUtils

Context: NoOp stubs and most util helpers were recently marked Internal (#6016, #6017); hybrids were explicitly left unmarked for now.

Action taken on behalf of Nelson Osacky.

Decision

Add a source-retention marker annotation, @HybridSdkApi, with no attributes. Put it on every non-customer element that a hybrid SDK uses:

  • types and members marked @ApiStatus.Internal
  • types in internal packages
  • public members that only hybrid SDKs call, such as the extra ReplayIntegration constructor

Customer-facing API is left unmarked, since semver already protects it. Before changing or removing a marked element, check the hybrid SDKs that use it.

Surveyed SDKs: React Native, Flutter, .NET, Unity, Unreal, Godot, Kotlin Multiplatform, Capacitor, Cordova.

Activity

  1. linear-code commented on Sep 2, 2026

    @linear-code
  2. changed the title [-]Decide hybrid SDK API marker for v9[/-] [+]Mark the non-customer API that hybrid SDKs use[/+] on Nov 25, 2026
  3. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions