Skip to content

[Draft] Add Firebase Crashlytics with Kermit log forwarding - #76

Draft
IanDBird wants to merge 1 commit into
mainfrom
ian/firebase
Draft

[Draft] Add Firebase Crashlytics with Kermit log forwarding#76
IanDBird wants to merge 1 commit into
mainfrom
ian/firebase

Conversation

@IanDBird

@IanDBird IanDBird commented Mar 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Integrate Firebase Crashlytics SDK for Android (Gradle plugins + BOM) and iOS (CocoaPods)
  • Disable Crashlytics collection in debug builds on both platforms
  • Add Kermit CrashlyticsLogWriter via expect/actual (androidMain, iosMain, wasmJsMain no-op) so all existing Logger injection sites automatically forward breadcrumbs and non-fatal exceptions to Crashlytics
  • Initialize CrashKiOS on iOS for Kotlin/Native crash symbolication (guarded by AtomicBoolean)
  • Add KermitLoggerTest covering severity mapping, tag forwarding, and min-severity filtering
  • Add docs/firebase-crashlytics-setup.md with manual steps (Firebase Console, config files, dSYM upload, verification)

Prerequisites

  • google-services.json must be placed at apps/android/google-services.json before Android builds will succeed
  • GoogleService-Info.plist must be placed at apps/ios/App/GoogleService-Info.plist for iOS
  • Run pod install in apps/ios after pulling this branch

Test plan

  • iOS simulator tests pass (./gradlew :packages:core:logging:iosSimulatorArm64Test)
  • Android build succeeds after adding google-services.json
  • iOS build succeeds after pod install and adding GoogleService-Info.plist
  • Verify Crashlytics breadcrumbs appear in Firebase Console after triggering a logged warning/error
  • Verify non-fatal exceptions appear for logger.e(throwable = ex) { "..." } calls

🤖 Generated with Claude Code

Integrate Firebase Crashlytics for Android and iOS crash reporting, and wire
Kermit's CrashlyticsLogWriter into the existing Logger so that log breadcrumbs
and non-fatal exceptions are automatically forwarded to Crashlytics across all
existing injection sites.
@IanDBird
IanDBird marked this pull request as draft March 1, 2026 14:41
@IanDBird IanDBird changed the title Add Firebase Crashlytics with Kermit log forwarding [Draft] Add Firebase Crashlytics with Kermit log forwarding Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant