-
-
Notifications
You must be signed in to change notification settings - Fork 366
Closed
Description
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:
- Using the
SentrySDK
naming so you would do something likeSentrySDK.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
andSentryDistribution.SentrySDK
but most of the time you wouldn't need the module prefixes if they are being used in different files.
- 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