snowplow / snowplow-unity-tracker

Snowplow event tracker for Unity. Add analytics to your Unity games and apps
http://snowplowanalytics.com
Apache License 2.0
16 stars 11 forks source link

Add in memory event store and enable it on tvOS by default (close #74) #77

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

Issue #74

Adds an in-memory event store with the main use case of it being tvOS – on tvOS we can't use the LiteDB database storage for events because it is not allowed to write to disk.

The new in memory storage keeps a dictionary of events with their row IDs. It has the basic functionality of an event store implemented on top of the dictionary.

I added tests for the in-memory event store. It is automatically used on tvOS but can also be tested on other platforms if it is configured here.