Add Timber logging
This commit is contained in:
parent
296c2946a2
commit
8dff9ea669
3 changed files with 4 additions and 0 deletions
|
|
@ -262,6 +262,7 @@ dependencies {
|
|||
implementation(libs.google.api.client.oauth)
|
||||
|
||||
// Logging
|
||||
implementation(libs.timber)
|
||||
implementation(libs.logcat)
|
||||
|
||||
// Crash reports/analytics
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ import tachiyomi.core.common.util.system.logcat
|
|||
import tachiyomi.domain.storage.service.StorageManager
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.presentation.widget.WidgetManager
|
||||
import timber.log.Timber
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
|
|
@ -100,6 +101,7 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
|
|||
override fun onCreate() {
|
||||
super<Application>.onCreate()
|
||||
Firebase.initialize(this)
|
||||
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
|
||||
|
||||
// SY -->
|
||||
if (!isDevFlavor) {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ swipe = "me.saket.swipe:swipe:1.3.0"
|
|||
moko-core = { module = "dev.icerock.moko:resources", version.ref = "moko" }
|
||||
moko-gradle = { module = "dev.icerock.moko:resources-generator", version.ref = "moko" }
|
||||
|
||||
timber = "com.jakewharton.timber:timber:4.7.1"
|
||||
logcat = "com.squareup.logcat:logcat:0.1"
|
||||
|
||||
firebase-analytics = "com.google.firebase:firebase-analytics:22.0.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue