Skip to content

feat: Add SentryDistribution #6173

@github-actions

Description

@github-actions

Note

The pull request "feat: Add SentryDistribution" was created by @noahsmartin but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

Adds the ETDistribution model to the package.swift

Intentionally not supporting cocoapods or usage from ObjC for now, that can come in a future version.

There are a few ways we could expose this API:

  1. Using the SentrySDK naming so you would do something like SentrySDK.checkForUpdates()
  • a: As an extension from the existing SentrySDK. This is not preferred because it means users would have to depend on both the Sentry target, and the distribution target.
  • b: As a new target containing a new object with the same name. So there would be Sentry.SentrySDK and SentryDistribution.SentrySDK but most of the time you wouldn't need the module prefixes if they are being used in different files.
  1. With a new type name like Distribution. This is what this PR does. The API is:
import SentryDistribution

Updater.checkForUpdates()

#skip-changelog

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions