|
|
@@ -2,6 +2,18 @@ package com.mrozon.currencyconverter
|
|
|
|
|
|
import android.app.Application
|
|
|
import dagger.hilt.android.HiltAndroidApp
|
|
|
+import timber.log.Timber
|
|
|
|
|
|
@HiltAndroidApp
|
|
|
-class MyApp: Application()
|
|
|
+class MyApp: Application() {
|
|
|
+ override fun onCreate() {
|
|
|
+ super.onCreate()
|
|
|
+ initTimber()
|
|
|
+ }
|
|
|
+
|
|
|
+ private fun initTimber() {
|
|
|
+ if (BuildConfig.DEBUG) {
|
|
|
+ Timber.plant(Timber.DebugTree())
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|