package com.ms_square.android.design.overlay.app;

import android.app.Application;
import android.preference.PreferenceManager;

import com.ms_square.android.design.overlay.R;

public class DesignOverlayApplication extends Application {

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

        // set default values for the app preference
        PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
    }
}
@@ -166,17 +166,101 @@
 overlay.
-R
+BuildConfig;%0Aimport com.ms_square.android.design.overlay.R;%0A%0Aimport timber.log.Timber
 ;%0A%0Apubli
@@ -358,16 +358,16 @@
 ate() %7B%0A
-
         
@@ -385,16 +385,151 @@
 ate();%0A%0A
+        if (BuildConfig.DEBUG) %7B%0A            // set up Timber for logging%0A            Timber.plant(new Timber.DebugTree());%0A        %7D%0A%0A
         

enable timber for debug