snowplow / snowplow-ios-tracker

Snowplow event tracker for Swift and Objective-C. Add analytics to your iOS, macOS, tvOS and watchOS apps and games
http://snowplow.io
Apache License 2.0
81 stars 93 forks source link

Make EmitterEvent constructor public #876

Closed fardage closed 9 months ago

fardage commented 9 months ago

Describe the bug We are considering using a custom EventStore as described here. However, the EventStore requires a method with the signature func emittableEvents(withQueryLimit queryLimit: UInt) -> [SnowplowTracker.EmitterEvent]. It seems that initializing EmitterEvent outside of the project is not possible. Am I missing something, or should the protection level of the EventEmitter be changed to public?

Screenshots image

matus-tomlein commented 9 months ago

That is correct, @fardage, thanks for reporting this! We will change the protection level of the constructor in the EmitterEvent in the next patch release.