package com.chikeandroid.debtmanager20;

import android.app.Application;


/**
 * Created by Chike on 3/24/2017.
 * Application class
 */

public class DebtManagerApplication extends Application{

    private ApplicationComponent mApplicationComponent;

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

        // no need to include the applicationModule since it requires no constructor argument
        mApplicationComponent = DaggerApplicationComponent.builder().context(getApplicationContext()).build();

       /* if(BuildConfig.DEBUG) {
            Stetho.initializeWithDefaults(this);
        }*/
    }

    public ApplicationComponent getComponent() {
        return mApplicationComponent;
    }
}

@@ -66,16 +66,82 @@
 cation;%0A
+import android.os.StrictMode;%0A%0Aimport com.facebook.stetho.Stetho;%0A
 %0A%0A/**%0A *
@@ -253,16 +253,17 @@
 lication
+ 
 %7B%0A%0A    p
@@ -597,18 +597,16 @@
 %0A       
-/*
  if(Buil
@@ -680,18 +680,638 @@
        %7D
-*/
+%0A%0A        if (BuildConfig.DEBUG) %7B%0A            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()%0A                    .detectDiskReads()%0A                    .detectDiskWrites()%0A                    .detectNetwork()   // or .detectAll() for all detectable problems%0A                    .penaltyLog()%0A                    .build());%0A            StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()%0A                    .detectLeakedSqlLiteObjects()%0A                    .detectLeakedClosableObjects()%0A                    .penaltyLog()%0A                    .penaltyDeath()%0A                    .build());%0A        %7D
 %0A    %7D%0A%0A

add StrictMode