Build: Crashlytics Demo Screen
This screen demonstrates how to integrate Firebase Crashlytics to catch and report app crashes in an Android app using Kotlin.
Target UI
------------------------- | Crashlytics Demo | |-----------------------| | [Crash App Button] | | | | Tap the button to | | cause a crash and | | send a report to | | Firebase Crashlytics. | -------------------------
Add Firebase Crashlytics dependency and initialize it.
Create a button labeled 'Crash App Button'.
When the button is tapped, force a crash by throwing a RuntimeException.
Ensure the crash is reported to Firebase Crashlytics.