TelemetryDeck / SwiftSDK

Swift SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
https://telemetrydeck.com/
Other
149 stars 30 forks source link

Add support for metadata enrichers #94

Closed Sherlouk closed 1 year ago

Sherlouk commented 1 year ago

Inspired by the Kotlin solution, you can now register enrichers to the configuration class.

Priority is in order of:

  1. The metadata provided at the .send callsite
  2. The metadata enrichers with the last enricher added having priority over the first
  3. The default payload provided by this SDK

Closes #47

winsmith commented 1 year ago

This is absolutely divine! Can you please run SwiftLint over it though, to make the linter slightly more happy?

Sherlouk commented 1 year ago

swiftlint has been run 👍

winsmith commented 1 year ago

Fantastico! Thank you very much!