:firebase:analytics
This module handles crash reporting and analytics through Firebase Crashlytics. It provides a centralized way to track app crashes and report exceptions.
Features
Crash Reporting
Error Tracking
Exception Handling
Custom Error Reports
Dependencies Graph
Usage
dependencies {
implementation(project(":firebase:analytics"))
}
Content copied to clipboard
Error Reporting
class YourClass @Inject constructor(
private val crashReporter: CrashReporter
) {
fun handleError(error: Throwable) {
crashReporter.reportException(error)
}
}
Content copied to clipboard
The module integrates with the app's error handling system to automatically report uncaught exceptions to Firebase Crashlytics.