Skip to content

Make SentryOptions.toPlatformOptionsConfiguration() extension function public #543

@driver-app-platform

Description

@driver-app-platform

Problem Statement

The current Multiplatform SDK bridge does not have the full capabilities of the native SDKs yet and even though we can configure Sentry to use some of the native SDKs params using initWithPlatformOptions, when we decide to do so we need to bridge every config to the native SDK classes and interfaces (ex: BeforeSendEvent would need to be implemented for each platform).
If would be nice if we were able to use the KMP configurations toPlatformOptionsConfiguration() method to generate the shared config setup, and then in the target specific dependencies we could alter this configuration only to add the native only needs.

Solution Brainstorm

Make SentryOptions.toPlatformOptionsConfiguration() extension function public, or provide a interface for being able to pass both common and platform specific configurations when initializing Sentry KMP

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions