Directly use shortcuts and update google services and firebase
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user