Exemplo n.º 1
0
 public static void trackFromSparksEvent(@NonNull SparksEvent sparksEvent) {
   if (!isEventIgnored(sparksEvent.getName()) && sMixpanelAPI != null && sGson != null) {
     try {
       JSONObject jSONObject = new JSONObject(sGson.toJson(sparksEvent.getParams()));
       jSONObject.remove("appVersion");
       jSONObject.remove("ts");
       jSONObject.remove("deviceId");
       sMixpanelAPI.m4786a(sparksEvent.getName(), jSONObject);
     } catch (JSONException e) {
       C3095y.m9479c(e.toString());
     }
   }
 }
Exemplo n.º 2
0
 public static void setMixpanelForUser(@Nullable User user) {
   if (user != null) {
     sMixpanelAPI.m4785a(user.getId());
   }
 }
Exemplo n.º 3
0
 public static void flushMixpanel() {
   sMixpanelAPI.m4784a();
 }
Exemplo n.º 4
0
 public static void start() {
   sMixpanelAPI = C2042h.m4769a(ManagerApp.m7917h(), TOKEN);
 }