From da2bf2ca2e458a49aa954144c5ecfa3ec36c161b Mon Sep 17 00:00:00 2001 From: Prithvirajkumar Date: Mon, 9 Mar 2026 11:00:54 -0400 Subject: [PATCH] Bump dist to 2 and set environment to production Co-Authored-By: Claude Sonnet 4.6 --- .env.example | 2 +- BUILD_GUIDE.md | 2 +- CLAUDE.md | 12 ++++++------ README.md | 4 ++-- lib/sentry_setup.dart | 4 ++-- pubspec.yaml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.env.example b/.env.example index 9751f28..bdc59fa 100644 --- a/.env.example +++ b/.env.example @@ -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 # ======================================== diff --git a/BUILD_GUIDE.md b/BUILD_GUIDE.md index 0f0dc88..90cfcf8 100644 --- a/BUILD_GUIDE.md +++ b/BUILD_GUIDE.md @@ -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 ``` diff --git a/CLAUDE.md b/CLAUDE.md index e2a8762..07a25a0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 @@ -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'`) --- @@ -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 @@ -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 @@ -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* diff --git a/README.md b/README.md index 70c9b7f..fa80b24 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/lib/sentry_setup.dart b/lib/sentry_setup.dart index 14eccc6..f5b8c1f 100644 --- a/lib/sentry_setup.dart +++ b/lib/sentry_setup.dart @@ -64,12 +64,12 @@ Future 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 diff --git a/pubspec.yaml b/pubspec.yaml index ea181e8..c086321 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"