Directly use shortcuts and update google services and firebase

This commit is contained in:
Jobobby04
2023-04-16 17:13:00 -04:00
parent ed233a1a77
commit b5fb64b70e
8 changed files with 27 additions and 19 deletions
@@ -1,7 +1,8 @@
package exh.log
import com.elvishew.xlog.printer.Printer
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import eu.kanade.tachiyomi.BuildConfig
class CrashlyticsPrinter(private val logLevel: Int) : Printer {
@@ -15,7 +16,7 @@ class CrashlyticsPrinter(private val logLevel: Int) : Printer {
override fun println(logLevel: Int, tag: String?, msg: String?) {
if (logLevel >= this.logLevel) {
try {
FirebaseCrashlytics.getInstance().log("$logLevel/$tag: $msg")
Firebase.crashlytics.log("$logLevel/$tag: $msg")
} catch (t: Throwable) {
// Crash in debug if shit like this happens
if (BuildConfig.DEBUG) throw t