Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give DefaultSignalPayload Public Access #126

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

nevillco
Copy link
Contributor

@nevillco nevillco commented Oct 26, 2023

Implements #115

DefaultSignalPayload is in charge of computing the event's default payload like appVersion, buildNumber etc., which some clients may want to send along to sources besides the TelemetryDeck SDK (for example, a backend service with its own analytics implementation). This PR gives the payload public access to enable that.

…es of DefaultSignalPayload public. Add doc comment on the type.
let operatingSystem = Self.operatingSystem
let targetEnvironment = Self.targetEnvironment
let locale = Self.locale
var extensionIdentifier: String? = Self.extensionIdentifier
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one property was a var before, but I found no existing need to mutate it, the tests pass, and the property was previously internal, so I figured it was safe to change to let.

@winsmith
Copy link
Contributor

Fantastic! Thank you so much!

@winsmith winsmith merged commit c804f2e into TelemetryDeck:main Oct 30, 2023
5 checks passed
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