keenlabs / KeenClient-iOS

Official iOS client for the Keen IO API. Build analytics features directly into your iOS apps.
https://keen.io/docs
MIT License
78 stars 56 forks source link

Fix multiple Keen instances upload #109

Closed heitortsergent closed 9 years ago

heitortsergent commented 9 years ago

This PR closes #108

KeenClient only has a static reference to a KIOEventStore variable, and KIOEventStore had a "projectID" property. That was being set whenever a shared KeenClient or an instance was initialized, which meant all events would go to the last set projectID.

I fixed that by removing the "projectID" variable from KIOEventStore, and making the projectID a parameter of all its required methods.

This PR can be tested by following the instructions on #108

terrhorn commented 9 years ago

:+1: