:firebase:analytics

This module handles crash reporting through Firebase Crashlytics. It provides a centralized way to track app crashes and report exceptions.

!NOTE Despite the module name firebase:analytics, this module provides Crashlytics (crash reporting), not Firebase Analytics (event tracking). Firebase Analytics is not included in this template.

Features

  • Crash Reporting

  • Error Tracking

  • Exception Handling

  • Custom Error Reports

Dependencies Graph

Usage

dependencies {
implementation(project(":firebase:analytics"))
}

Error Reporting

class YourClass @Inject constructor(
private val crashReporter: CrashReporter
) {
fun handleError(error: Throwable) {
crashReporter.reportException(error)
}
}

The module integrates with the app's error handling system to automatically report uncaught exceptions to Firebase Crashlytics.

Setup

!NOTE For Firebase setup instructions, including enabling Crashlytics in the Firebase Console, see the ../../docs/firebase.md.

Related Documentation

  • ../../docs/firebase.md - Complete Firebase Console and local project setup

  • ../../docs/troubleshooting.md - Firebase Crashlytics issues and solutions

  • Firebase Crashlytics Docs - Official Firebase Crashlytics documentation

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard