Skip to content

Comments

212 feat implement crashlytics#247

Merged
ZanderCowboy merged 5 commits intodevelopfrom
212-feat-implement-crashlytics
Feb 3, 2026
Merged

212 feat implement crashlytics#247
ZanderCowboy merged 5 commits intodevelopfrom
212-feat-implement-crashlytics

Conversation

@ZanderCowboy
Copy link
Owner

@ZanderCowboy ZanderCowboy commented Feb 3, 2026

#212 - Firebase Crashlytics Setup

  • Add firebase_crashlytics and firebase_analytics package dependency
  • Create crashlytics_setup.dart file with setupCrashlytics() function
  • Configure FlutterError.onError to record Flutter framework fatal errors
  • Configure PlatformDispatcher.instance.onError to record asynchronous errors
  • Import and call setupCrashlytics() in main.dart after Firebase initialization
  • Add test FloatingActionButton to home page for Crashlytics testing

Screenshot

Terminal

image

On Firebase

image

@ZanderCowboy ZanderCowboy added this to the Release 3 milestone Feb 3, 2026
@ZanderCowboy ZanderCowboy self-assigned this Feb 3, 2026
@ZanderCowboy ZanderCowboy added the feature Create a new feature label Feb 3, 2026
@ZanderCowboy ZanderCowboy requested a review from Copilot February 3, 2026 22:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements Firebase Crashlytics integration to capture and report uncaught errors in the Flutter app. The implementation adds the necessary dependencies, creates a setup function to configure error handlers, and integrates it into the app's initialization flow.

Changes:

  • Added firebase_crashlytics (v5.0.7) and firebase_analytics (v12.1.1) package dependencies
  • Created crashlytics_setup.dart with error handler configuration for Flutter framework and asynchronous errors
  • Integrated Crashlytics setup into main.dart after Firebase initialization

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
apps/multichoice/pubspec.yaml Added firebase_crashlytics and firebase_analytics dependencies
apps/multichoice/lib/crashlytics_setup.dart New file implementing Crashlytics error handlers for Flutter framework and async errors
apps/multichoice/lib/main.dart Imported and called setupCrashlytics() function after bootstrap
CHANGELOG.md Updated changelog with implementation details

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Configure `FlutterError.onError` to record Flutter framework fatal errors
- Configure `PlatformDispatcher.instance.onError` to record asynchronous errors
- Import and call `setupCrashlytics()` in `main.dart` after Firebase initialization
- Add test FloatingActionButton to home page for Crashlytics testing
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description mentions "Add test FloatingActionButton to home page for Crashlytics testing" but this change is not present in the code diff. Either the test button was removed before submitting the PR (which is appropriate for production code), or there's a discrepancy between the description and the actual changes. If the test button was intentionally removed, consider updating the PR description to reflect the final state of the code.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,23 @@
// ignore_for_file: discarded_futures, document_ignores
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ignore directive 'discarded_futures' is being used, but after fixing the async callback issue (making FlutterError.onError synchronous), this ignore may no longer be necessary. Consider removing it if it's no longer needed after the fix.

Copilot uses AI. Check for mistakes.
ZanderCowboy and others added 2 commits February 4, 2026 00:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Ensure a mobile platform is used

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2026

@ZanderCowboy ZanderCowboy merged commit 923ed42 into develop Feb 3, 2026
5 checks passed
@ZanderCowboy ZanderCowboy deleted the 212-feat-implement-crashlytics branch February 8, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Create a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant