Skip to content

feat: add breadcrumb support for crash reporting - #32

Draft
t-jimbo wants to merge 7 commits into
mainfrom
feat/breadcrumb-support
Draft

t-jimbo wants to merge 7 commits into
mainfrom
feat/breadcrumb-support

Conversation

@t-jimbo

@t-jimbo t-jimbo commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add NativebrikBreadcrumb class with record() method for recording breadcrumbs
  • Add BreadcrumbCategory enum (navigation, ui, network, console, custom)
  • Add BreadcrumbLevel enum (debug, info, warning, error)
  • Add method channel support for iOS and Android

Usage

NativebrikBreadcrumb.instance.record(
  message: 'Button tapped',
  category: BreadcrumbCategory.ui,
  data: {'button_id': 'submit'},
);

Breadcrumb Data Structure

{
  "message": "Button tapped",
  "category": "ui",
  "level": "info",
  "data": { "button_id": "submit" },
  "timestamp": 1704531600000
}

Required: Core SDK Implementation

This PR requires corresponding changes in the Core SDK (iOS/Android):

  • Add recordBreadcrumb(data) method
  • Buffer breadcrumbs (max 50 entries)
  • Include breadcrumbs when sending crash reports to track server

Test plan

  • Verify Flutter SDK compiles without errors
  • Test NativebrikBreadcrumb.instance.record() call
  • Verify Core SDK receives breadcrumb data via method channel
  • Test breadcrumbs are sent with crash reports (after Core SDK implementation)

🤖 Generated with Claude Code

t-jimbo and others added 6 commits January 6, 2026 15:28
Add breadcrumb support with:
- BreadcrumbCategory enum (navigation, ui, network, console, custom)
- BreadcrumbLevel enum (debug, info, warning, error)
- NativebrikBreadcrumb singleton class with record() method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename BreadcrumbCategory.network to http
- Add BreadcrumbLevel.fatal

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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