Files
mobile-android/app/src/main/java/com/rosetta/messenger/RosettaApplication.kt

34 lines
798 B
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.rosetta.messenger
import android.app.Application
import com.rosetta.messenger.utils.CrashReportManager
/**
* Application класс для инициализации глобальных компонентов приложения
*/
class RosettaApplication : Application() {
companion object {
private const val TAG = "RosettaApplication"
}
override fun onCreate() {
super.onCreate()
// Инициализируем crash reporter
initCrashReporting()
}
/**
* Инициализация системы сбора crash reports
*/
private fun initCrashReporting() {
try {
CrashReportManager.init(this)
} catch (e: Exception) {
}
}
}