Home page updates & UI tweaks

This commit is contained in:
Damontecres 2025-10-12 21:12:35 -04:00
parent 207f8656dd
commit 5fc3718e12
No known key found for this signature in database
7 changed files with 59 additions and 40 deletions

View file

@ -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)
}
},
)
}
}