mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Home page updates & UI tweaks
This commit is contained in:
parent
207f8656dd
commit
5fc3718e12
7 changed files with 59 additions and 40 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.github.damontecres.dolphin
|
||||
|
||||
import android.app.Application
|
||||
import android.util.Log
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
import timber.log.Timber
|
||||
|
||||
|
|
@ -10,8 +11,25 @@ class DolphinApplication : Application() {
|
|||
instance = this
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
// TODO minimal logging for release builds?
|
||||
Timber.plant(Timber.DebugTree())
|
||||
} else {
|
||||
Timber.plant(
|
||||
object : Timber.Tree() {
|
||||
override fun isLoggable(
|
||||
tag: String?,
|
||||
priority: Int,
|
||||
): Boolean = priority >= Log.INFO
|
||||
|
||||
override fun log(
|
||||
priority: Int,
|
||||
tag: String?,
|
||||
message: String,
|
||||
t: Throwable?,
|
||||
) {
|
||||
Log.println(priority, tag ?: "Dolphin", message)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue