package com.growthbeat.growthbeatsample;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;

import com.growthbeat.Growthbeat;
import com.growthbeat.analytics.GrowthAnalytics;
import com.growthpush.model.Environment;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		Growthbeat.getInstance().initialize(getApplicationContext(), "OyVa3zboPjHVjsDC", "3EKydeJ0imxJ5WqS22FJfdVamFLgu7XA");
		Growthbeat.getInstance().initializeGrowthPush(BuildConfig.DEBUG ? Environment.development : Environment.production, "955057365401");
		Growthbeat.getInstance().initializeGrowthReplay();
		GrowthAnalytics.getInstance().getHttpClient().setBaseUrl("http://api.stg.analytics.growthbeat.com/");
	}

	@Override
	public void onStart() {

		super.onStart();

		GrowthAnalytics.getInstance().open();
		GrowthAnalytics.getInstance().setBasicTags();

	}

	@Override
	public void onStop() {
		super.onStop();
		GrowthAnalytics.getInstance().close();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}

@@ -203,49 +203,8 @@
 ics;
-%0Aimport com.growthpush.model.Environment;
 %0A%0Apu
@@ -434,31 +434,12 @@
 ize(
-getApplicationContext()
+this
 , %22O
@@ -540,254 +540,18 @@
 owth
-Push(BuildConfig.DEBUG ? Environment.development : Environment.production, %22955057365401%22);%0A%09%09Growthbeat.getInstance().initializeGrowthReplay();%0A%09%09GrowthAnalytics.getInstance().getHttpClient().setBaseUrl(%22http://api.stg.analytics.growthbeat.com/%22
+Analytics(
 );%0A%09

Fix implementation of sample application