smf_firebase_crashlytics

The SMF module of Firebase Crashlytics with firebase_crashlytics. It provides the crash reporting role of SMF: the app reports to Crashlytics the errors that it does not handle, and those that its code reports through its CrashReporter.

An app can have several modules that provide crash reporting, and the reporter of the app forwards each report to all of them. Crashlytics works on the Firebase app, so the module depends on smf_firebase_core, which comes with it and sets up Firebase.

On macOS, flutterfire configure adds a build phase for Crashlytics to the Xcode project and writes it again in each run. So the module adds a script to the app, which tool/configure_firebase.dart runs after flutterfire for each flavor: it points the phase at the upload script of Crashlytics where Flutter puts it, so that flutter build ipa finds it. After you run flutterfire configure yourself, run the command that the README of the app gives. An app with Crashlytics that flutterfire_cli 1.4.0 configured fails to build for iOS with Swift Package Manager until it is configured again with 1.4.1; see Firebase.

Use with the SMF CLI

smf create asks which modules provide the crash reporting of the app, and the answer may be none. To choose this one without the question:

smf create my_app -m firebase_crashlytics

You don't add this package to an app yourself: smf create of the SMF CLI puts what the module generates into the app.

SMF generates apps for Flutter 3.44 or newer and Dart 3.12 or newer. It is tested on macOS, Linux and Windows.

Documentation

Libraries

bundles/firebase_crashlytics_bundle
smf_firebase_crashlytics
The module that reports the errors of the app to Firebase Crashlytics: FirebaseCrashlyticsModule, a provider of the crash reporting role of the SMF module model.