@@ -47,5 +47,5 @@ dependencies {
compile 'com.jakewharton:butterknife:' + versions.butterKnife
annotationProcessor 'com.jakewharton:butterknife-compiler:' + versions.butterKnife
- compile 'com.facebook.stetho:stetho:1.4.2'
+ debugCompile 'com.facebook.stetho:stetho:1.4.2'
}
@@ -11,6 +11,8 @@ public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
- Stetho.initializeWithDefaults(this);
+ if (BuildConfig.DEBUG) {
+ Stetho.initializeWithDefaults(this);
+ }