package com.wkovacs64.mtorch;

import android.app.Application;

import timber.log.Timber;

public class CustomApplication extends Application {

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

        if (BuildConfig.DEBUG) {
            // Initialize Timber logging library
            Timber.plant(new Timber.DebugTree());
        }
    }
}

@@ -55,16 +55,71 @@
 ication;
+%0Aimport android.os.Build;%0Aimport android.os.StrictMode;
 %0A%0Aimport
@@ -394,16 +394,440 @@
 Tree());
+%0A%0A            // Enable StrictMode for debug builds%0A            enabledStrictMode();%0A        %7D%0A    %7D%0A%0A    private void enabledStrictMode() %7B%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.GINGERBREAD) %7B%0A            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()%0A                    .detectAll()%0A                    .penaltyLog()%0A                    .penaltyDialog()%0A                    .build());
 %0A       

Enable StrictMode for debug builds