package com.pixable.trackingwrap.demo;

import android.app.AlertDialog;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.View;

import com.pixable.trackingwrap.TrackingEvent;
import com.pixable.trackingwrap.TrackingWrap;
import com.pixable.trackingwrap.helper.TrackedActionBarActivity;
import com.pixable.trackingwrap.platform.Platform;

public class MainActivity extends TrackedActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onFooClick(View view) {
        TrackingWrap.getInstance()
                .trackEvent(this,
                        new TrackingEvent.Builder().withName("foo")
                                .addProperty("view", "main")
                                .addProperty("property2", "value2")
                                .addProperty("property3", "value3")
                                .build(),
                        Platform.Id.FLURRY);
        new AlertDialog.Builder(this)
                .setMessage(R.string.foo_dialog_message)
                .setPositiveButton(android.R.string.ok, null)
                .show();
    }
}

@@ -69,57 +69,8 @@
 og;%0A
-import android.support.v7.app.ActionBarActivity;%0A
 impo
@@ -150,24 +150,16 @@
 ingwrap.
-Tracking
 Event;%0Ai
@@ -620,19 +620,11 @@
 .get
-Instance
 ()%0A
+
     
@@ -681,24 +681,16 @@
     new 
-Tracking
 Event.Bu
@@ -701,13 +701,9 @@
 r().
-withN
+n
 ame(
@@ -734,36 +734,33 @@
                .
-addP
+p
 roperty(%22view%22, 
@@ -792,36 +792,33 @@
                .
-addP
+p
 roperty(%22propert
@@ -869,12 +869,9 @@
    .
-addP
+p
 rope

Fix Demo project