Add Stetho to debug application (#18)

This commit is contained in:
Kirill Kamakin
2021-11-28 16:32:05 +03:00
committed by GitHub
parent a1b81eca64
commit cc2fb77269
3 changed files with 15 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package gq.kirmanak.mealient
import android.app.Application
import com.facebook.stetho.Stetho
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@@ -8,7 +9,10 @@ import timber.log.Timber
class App : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
Stetho.initializeWithDefaults(this)
}
Timber.v("onCreate() called")
}
}