package pt.passarola.services.tracker;

/**
 * Created by ruigoncalo on 14/01/16.
 */
public class FabricTracker {
}

@@ -37,81 +37,718 @@
 r;%0A%0A
-/**%0A * Created by ruigoncalo on 14/01/16.%0A */%0Apublic class FabricTracker %7B
+import com.crashlytics.android.answers.Answers;%0Aimport com.crashlytics.android.answers.CustomEvent;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * Created by ruigoncalo on 14/01/16.%0A */%0Apublic class FabricTracker %7B%0A%0A    public void trackEvent(String eventName)%7B%0A        Answers.getInstance().logCustom(new CustomEvent(eventName));%0A    %7D%0A%0A    public void trackEvent(String eventName, HashMap%3CString, String%3E attributes)%7B%0A        CustomEvent customEvent = new CustomEvent(eventName);%0A%0A        for(Map.Entry%3CString, String%3E entry : attributes.entrySet())%7B%0A            customEvent.putCustomAttribute(entry.getKey(), entry.getValue());%0A        %7D%0A%0A        Answers.getInstance().logCustom(customEvent);%0A    %7D
 %0A%7D%0A

Add Fabric tracker