TelemetryRepository
The app's whole telemetry in one type: AnalyticsReporter, DiagnosticsReporter and TelemetryCollection.
The analytics and crash SDKs are its data sources, so callers reach them through this contract and never depend on a vendor. The implementation is the only place that touches an SDK; :library:integration:firebase binds FirebaseTelemetryRepository, and telemetryModule binds the three narrower contracts to the same instance.
It is what the UI layer uses: ViewModels take it, LoggedScreenViewModel reports through it, and composables read it as val telemetry = LocalTelemetry.current. A screen view or a tap is a UI event, and sending it through a ViewModel would add an event per tap and change nothing about what is reported. Code under data/ and domain/ takes DiagnosticsReporter, and TelemetryCollection where it applies consent, instead.
Inheritors
Functions
Adds a breadcrumb to the crash log, for tracing what happened before a failure.
Logs standard GA4 search event with parameter search_term.
Logs standard GA4 select_content event with parameters content_type and item_id.
Logs standard GA4 tutorial_begin event.
Logs standard GA4 tutorial_complete event.
Logs standard GA4 unlock_achievement event with parameter achievement_id.
Logs standard GA4 view_item event with parameters item_id, item_name, and optional item_category.
Logs standard GA4 view_item_list event with optional parameters item_list_id and item_list_name.
Records a non-fatal throwable that has no ViewModel context.
Enables or disables analytics collection for the current process.
Enables or disables crash reporting for the current process.
Enables or disables performance monitoring for the current process.
Updates the consent configuration used by analytics and ads measurement.