package cc.cubone.turbo;

import android.app.Application;

import cc.cubone.turbo.core.debug.CrashHandler;
import cc.cubone.turbo.core.util.Log;

import static cc.cubone.turbo.BuildConfig.DEBUG;

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Log.setLog(DEBUG);
        new CrashHandler(this);
    }

}

@@ -50,16 +50,46 @@
 ication;
+%0Aimport android.os.StrictMode;
 %0A%0Aimport
@@ -377,29 +377,616 @@
     
-new CrashHandler(this
+if (DEBUG) %7B%0A            setupStrictMode();%0A        %7D%0A        new CrashHandler(this);%0A    %7D%0A%0A    private void setupStrictMode() %7B%0A        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()%0A                .detectDiskReads()%0A                .detectDiskWrites()%0A                .detectNetwork()%0A                .penaltyLog()%0A                .build());%0A        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()%0A                .detectLeakedSqlLiteObjects()%0A                .detectLeakedClosableObjects()%0A                .penaltyLog()%0A                .penaltyDeath()%0A                .build()
 );%0A 

add strict mode