Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# ========================================
SENTRY_AUTH_TOKEN=your_auth_token
SENTRY_DSN=your_dsn
SENTRY_RELEASE=empower_flutter@9.14.0+1 # Format: appname@version+build
SENTRY_RELEASE=empower_flutter@9.14.0+2 # Format: appname@version+build
SENTRY_ENVIRONMENT=your_environment

# ========================================
Expand Down
2 changes: 1 addition & 1 deletion BUILD_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ The script automatically uploads symbols for release builds if Sentry is configu
Add to your `.env` file:
```bash
SENTRY_DSN=https://your-key@o0.ingest.sentry.io/0000000
SENTRY_RELEASE=myapp@9.14.0+1
SENTRY_RELEASE=myapp@9.14.0+2
SENTRY_ENVIRONMENT=production
```

Expand Down
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Project Overview

**Application:** Empower Plant (`empower_flutter`)
**Version:** 9.14.0+1 (matches Sentry SDK version)
**Version:** 9.14.0+2 (matches Sentry SDK version)
**Purpose:** Production-ready Flutter e-commerce app with comprehensive Sentry instrumentation demonstrating best practices for error monitoring, performance tracking, session replay, and user feedback.

**Type:** Full-featured plant shopping app + Sentry demo platform
Expand All @@ -24,10 +24,10 @@
- Sentry config: DSN, ORG, PROJECT, AUTH_TOKEN required

### Version Management
- **Format:** `package@version+build` (e.g., `com.example.empower_flutter@9.14.0+1`)
- **Format:** `package@version+build` (e.g., `com.example.empower_flutter@9.14.0+2`)
- Version source: `pubspec.yaml`
- Must match Sentry SDK version for consistency
- Distribution set to build number (currently `'1'`)
- Distribution set to build number (currently `'2'`)

---

Expand Down Expand Up @@ -324,7 +324,7 @@ await client.get(Uri.parse('https://example.com'));
```bash
SENTRY_AUTH_TOKEN=sntryu_xxx # Sentry auth token
SENTRY_DSN=https://xxx@xxx.ingest.sentry.io/xxx
SENTRY_RELEASE=com.example.empower_flutter@9.14.0+1
SENTRY_RELEASE=com.example.empower_flutter@9.14.0+2
SENTRY_ENVIRONMENT=development # development/staging/production
SENTRY_ORG=your-org-slug
SENTRY_PROJECT=your-project-slug
Expand Down Expand Up @@ -529,7 +529,7 @@ SENTRY_SIZE_ANALYSIS_ENABLED=true
- **GitHub (Sentry SDK):** `https://github.com/getsentry/sentry-dart`

### Important Version Numbers
- **App Version:** 9.14.0+1
- **App Version:** 9.14.0+2
- **Flutter SDK:** >= 3.22.0
- **Sentry SDK:** ^9.14.0

Expand All @@ -543,4 +543,4 @@ SENTRY_SIZE_ANALYSIS_ENABLED=true

*Last Updated: Session creating this CLAUDE.md*
*Current Branch: feature/comprehensive-sentry-integration*
*App Version: 9.14.0+1*
*App Version: 9.14.0+2*
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A Flutter e-commerce application showcasing comprehensive Sentry instrumentation
```bash
SENTRY_AUTH_TOKEN=sntryu_your_token_here
SENTRY_DSN=https://your_key@o123456.ingest.us.sentry.io/123456
SENTRY_RELEASE=com.example.empower_flutter@9.14.0+1
SENTRY_RELEASE=com.example.empower_flutter@9.14.0+2
SENTRY_ENVIRONMENT=development
SENTRY_ORG=your-org-slug
SENTRY_PROJECT=your-project-slug
Expand Down Expand Up @@ -358,6 +358,6 @@ For issues with this demo, check existing documentation or reach out to the SE t

---

**Current Version:** 9.14.0+1 (matches Sentry SDK)
**Current Version:** 9.14.0+2 (matches Sentry SDK)
**Tested Platform:** Android only
**App Name:** Empower Plant (com.example.empower_flutter)
4 changes: 2 additions & 2 deletions lib/sentry_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ Future<void> initSentry({required VoidCallback appRunner}) async {
options.dsn = sentryDsn;

// Release must match exactly with uploaded debug symbols
// CRITICAL: This must be in format "appname@version+build" (e.g., "empower_flutter@9.14.0+1")
// CRITICAL: This must be in format "appname@version+build" (e.g., "empower_flutter@9.14.0+2")
options.release = sentryRelease;
options.environment = sentryEnvironment;

// Set distribution to match build number for better symbol matching
options.dist = '1'; // Matches version 9.14.0+1
options.dist = '2'; // Matches version 9.14.0+2

// Debug settings (disabled for production to ensure proper symbol resolution)
// Set to true only when debugging Sentry configuration issues
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 9.14.0+1
version: 9.14.0+2

environment:
sdk: ">=3.5.0 <4.0.0"
Expand Down