package speciemongo.net.speciemongo;

import android.app.Application;
import android.os.StrictMode;

import com.instabug.library.IBGInvocationEvent;
import com.instabug.library.Instabug;
import com.mapbox.mapboxsdk.MapboxAccountManager;

/**
 * The {@link Application} implementation for the app.
 */
public class SgApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // If we are in debug mode,
        if(BuildConfig.DEBUG) {

            // Enable strict mode
            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());
            StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());

        }

        MapboxAccountManager.start(this,
                "pk.eyJ1IjoianRrbGVpbiIsImEiOiJjaXJwZHJtOGUwMGFqaHVuaDI4bGQ2NndnIn0.nCYv5GWwefBLgO0zde2_Yw");



        // TODO change failure logs to Instabug in beta
        // Initialize Instabug
        new Instabug.Builder(this, "09eb9f6a678f5331c074cfe615d6ba3e")
                .setInvocationEvent(IBGInvocationEvent.IBGInvocationEventShake)
                .setShouldShowIntroDialog(false)
                .setDebugEnabled(true)
                .build();

    }
}

package speciemongo.net.speciemongo;

import android.app.Application;
import android.os.StrictMode;

import com.instabug.library.IBGInvocationEvent;
import com.instabug.library.Instabug;

/**
 * The {@link Application} implementation for the app.
 */
public class SgApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // If we are in debug mode,
        if(BuildConfig.DEBUG) {

            // Enable strict mode
            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());
            StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                    .detectAll()
                    .penaltyLog()
                    .build());

        }

        // Initialize Instabug
        new Instabug.Builder(this, "09eb9f6a678f5331c074cfe615d6ba3e")
                .setInvocationEvent(IBGInvocationEvent.IBGInvocationEventShake)
                .build();

    }
}

Revert "Initialized MapBox in Application"
Revert "Initialized MapBox in Application"

This reverts commit 515839411f8dd12011a910e67c2c08a590e08d12.
