Add _pauseSession and _resumeSession events

Fixed _endSession when switching activity

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
[Bug Fix] Fix session tracking bug
[Enhancement] Code refactor
[Feature] Alias anonymous user with identified user

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Removed camelCase notation in device attributes

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Raise Exception in development if the Event name is invalid

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Add a smarter http requests dispacher

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Changed User auto_identified attribute to identified

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Change LQDataPoint#toJSON to return a JSONObject

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Change the UUID generation algorithm

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Request and Load LiquidPackage optimizations

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Fix crash when calling reset()

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Add soft reset

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Remove canFlushOnBackground flag

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
remove "device" string from device attributes

device_model -> model
device_name -> name

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Removed name attribute from device

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Changed the random UUID strategy for device unique_id

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Add system_language attribute to LQDevice

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Change USER_AGENT request header

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Send variables outside of LQQueuer

Prevent session destroy when device rotate for both sides (RTL and LTR)

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Remove checks if current user isn't initialize

user is auto initialized when singleton is created

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>
Fix endpoints url

- Make alias request outside LQQueuer
- Change httpConnectionTo to sendRequest

Signed-off-by: Ricardo Leitão <rleitao@lqd.io>