fix: firebase initialization

This commit is contained in:
rebelonion 2024-02-06 03:11:31 -06:00
parent f77269e468
commit d15ffe7708
6 changed files with 20 additions and 0 deletions

View file

@ -57,6 +57,7 @@ class App : MultiDexApplication() {
Injekt.importModule(PreferenceModule(this))
val crashlytics = Injekt.get<CrashlyticsInterface>()
crashlytics.initialize(this)
val useMaterialYou: Boolean = PrefManager.getVal(PrefName.UseMaterialYou)
if (useMaterialYou) {

View file

@ -1,6 +1,9 @@
package ani.dantotsu.connections.crashlytics
import android.content.Context
interface CrashlyticsInterface {
fun initialize(context: Context)
fun logException(e: Throwable)
fun log(message: String)
fun setUserId(id: String)

View file

@ -1,6 +1,11 @@
package ani.dantotsu.connections.crashlytics
import android.content.Context
class CrashlyticsStub : CrashlyticsInterface {
override fun initialize(context: Context) {
//no-op
}
override fun logException(e: Throwable) {
//no-op
}