Viewing version 3.4.0. Open the latest package page.
sentry_dart_plugin
3.4.0Uploads debug symbols to Sentry for server-side symbolication.
Readme
Sentry Dart Plugin
Sentry Dart Plugin pub package pub points
A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli.
Installation and Usage
Please refer to Sentry Dart Plugin's documentation page.
Changelog
Changelog
3.4.0
Dependencies
- Bump sentry-cli to v2.58.6 by @szokeasaurusrex in #402
Fixes
- Prevent stale dart symbol map debug ID markers by @denrase in #403
Internal Changes
- (deps) Bump getsentry/craft from 2.19.0 to 2.25.2 by @dependabot in #390
- Notify linked issues on release by @buenaflor in #404
3.3.0
Features
- Ignore path list for web (#340)
- You can use the
ignore_web_source_pathsfield: e.gignore_web_source_paths: [test/**/*.js] - This will ignore all specified files and directories from being uploaded
- You can use the
- Improve flavored Apple debug symbol discovery (#393)
Fixes
- Fix processor architecture for Linux (#355)
- Add custom
symbols_pathin iOS symbol map discovery (#394) - Use
SENTRY_URLfor Dart symbol map uploads (#395)
3.2.1
Fixes
- Log level not respected when configured via env variables (#370)
3.2.0
Features
- Upload Dart symbol mapping file (#347)
- Enables symbolication of Flutter issue titles for obfuscated builds.
- Supported: Android and iOS
- Not supported (yet): macOS, Linux and Windows.
- Generate the mapping file: Add
--extra-gen-snapshot-options=--save-obfuscation-map=<path>when building. Example:flutter build apk --obfuscate --split-debug-info=build/symbols --extra-gen-snapshot-options=--save-obfuscation-map=build/mapping.json - Configure the plugin: Set
dart_symbol_map_path: build/mapping.json - Important:
dart_symbol_map_pathmust point directly to the mapping file (absolute or relative path), not a directory.
3.2.0-beta.1
Features
- Upload Dart symbol mapping file (#347)
- Enables symbolication of Flutter issue titles for obfuscated builds.
- Supported: Android and iOS
- Not supported (yet): macOS, Linux and Windows.
- Generate the mapping file: Add
--extra-gen-snapshot-options=--save-obfuscation-map=<path>when building. Example:flutter build apk --obfuscate --split-debug-info=build/symbols --extra-gen-snapshot-options=--save-obfuscation-map=build/mapping.json - Configure the plugin: Set
dart_symbol_map_path: build/mapping.json - Important:
dart_symbol_map_pathmust point directly to the mapping file (absolute or relative path), not a directory.
3.1.1
Fixes
- Add additional path to check for iOS debug symbols (#342)
3.1.0
Features
- Add release and dist to sourcemaps upload command (#333)
- This enables the uploaded bundle to be associated with the release for informational purposes
Fixes
- Should not exit program when web build path is not found (#337)
3.0.0
Version 3.0.0 marks a major release of the Sentry Dart Plugin containing breaking changes for Flutter Web.
Breaking Changes
- Automatic Debug-ID Injection
- What’s new: By default, the plugin now embeds Debug IDs into your generated source maps.
- Why it matters: Debug IDs make symbolication of Flutter Web stack traces far more stable and reliable.
- Minimum Flutter SDK Requirement
- The Debug-ID feature only works with Sentry Flutter SDK 9.1.0 or newer.
- If you’re on 9.0.0 (or below), you won’t get Debug IDs automatically.
- Legacy Symbolication Mode
- If you cannot upgrade to Flutter SDK ≥ 9.1.0 yet, add this flag to your Sentry Dart Plugin config:
sentry: dart_plugin: legacy_web_symbolication: true- This switches back to the “classic” source-map symbolication method you’ve been using.
- If you cannot upgrade to Flutter SDK ≥ 9.1.0 yet, add this flag to your Sentry Dart Plugin config:
Features
- Support injecting debug ids for Flutter Web (#319)
- Debug id loading will be the default symbolication in v3
- We have added the new field
legacy_web_symbolicationwhich you can set totrueif you want to keep using the old symbolication. It is set tofalseby default.
Enhancements
- Improve Flutter Web stacktraces by stripping verbose source prefixes (#320)
- This is only applied if you use the debug id symbolication which is enabled by default.
- This will not work with the legacy web symbolication.
2.4.1
Fixes
- Add missing prefix to source file upload (#306)
2.4.0
Enhancements
- Merge
pubspec.yamlandsentry.propertiesvalues (#295)
Dependencies
2.3.0
Features
- Support flavors in iOS symbol upload (#292)
Dependencies
2.2.1
Fixes
- Dart source context on web missing (#285)
2.2.0
Changes
- Upload debug symbols for known release build paths and the configured
symbols_path(#277) Previously, all debug symbols recognized by Sentry CLI were uploaded (starting in the current directory by default). Now, the plugin checks the paths whereflutter buildoutputs debug symbols for release builds and only uploads those.
Features
- Add urlPrefix to sentry configuration (#253)
Fixes
- Only upload
.dartfiles withupload-sourcemapswhenupload_sourcesis enabled (#247)- Enable
upload_sourcesto opt in to Flutter web source context
- Enable
Dependencies
2.1.0
Features
- Add support for build files folder parameter (#235)
- Support SENTRYCLI_CDNURL env (#230)
- Add
sentry_cli_versionparameter (#243)
Fixes
- Revert sentry-cli to v2.27.0 (#241)
2.0.0
Breaking Changes
- Update env/config
releaseanddistbehaviour (#217)- Default release: automatically constructs the release identifier from pubspec.yaml using the format:
name@version. If a build number is included in the version, it is utilized as dist. - Custom release can be specified via an environment variable or plugin configuration. Once set, it is used as is without further modification.
- Custom dist can also be set via environment variables or plugin configuration. It replaces or adds to the build number in the default release.
- Environment variables:
SENTRY_RELEASEandSENTRY_DISTenvironment variables take precedence over plugin config values.
- Default release: automatically constructs the release identifier from pubspec.yaml using the format:
Features
- Custom
distoverrides version build number (#216)- For instance, if the initial release version is
release@1.0.0+1, specifying a custom dist value of 2 will update the version torelease@1.0.0+2.
- For instance, if the initial release version is
- Add option to provide alternative binary directory (#214)
- Support configuration arguments via
--sentry-define(#198) - Provide path to local
sentry-cli(#224)
Dependencies
1.7.1
Fixes
- Updated the
processdependency range to>=4.2.4 <6.0.0(#202).- This update resolves a version conflict issue when using the
integration_testpackage with Flutter version3.19.0
- This update resolves a version conflict issue when using the
1.7.0
Features
- Support reading config from sentry.properties file (#191)
Dependencies
1.6.3
Fixes
- Fixes org auth tokens with no URL not supported by bumping CLI to v2.21.2 (#169)
Dependencies
1.6.2
Dependencies
1.6.0
Dependencies
1.5.0
Fixes
- Support custom
distandreleasehas precedence over the pubspec'sname(#139)
Dependencies
1.4.0
Enhancements
- Replace
upload-diftodebug-files upload(#127)
Dependencies
1.3.0
Features
1.2.0
Features
- Dart v3 support (#112)
Breaking Changes
- Bump Dart min to 2.17.0 (#112)
Dependencies
1.1.0
Features
- Add configuration
ignore_missing(#85)
1.0.0
Dependencies
1.0.0-RC.1
Changes
- Rename configuration
include_native_sourcestoupload_sources(#78) - Rename configuration
upload_native_symbolstoupload_debug_symbols(#78)
Dependencies
1.0.0-beta.5
Dependencies
1.0.0-beta.4
Features
- Support release commits (#62)
1.0.0-beta.3
Features
Dependencies
1.0.0-beta.2
Fixes
- Early exit when providing lower log level (#31)
1.0.0-beta.1
Features
- Ability to configure url for on-premise server (#17)
1.0.0-alpha.4
Fixes
- Log real exitCode, stdout and stdout if available (#13)
1.0.0-alpha.3
Dependencies
- Bump sentry-cli 1.69.1 which includes a fix for Dart debug symbols (#8)
1.0.0-alpha.2
Fixes
- Add org and project when creating releases (#2)
1.0.0-alpha.1
Features
- Sentry Dart Plugin
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'sentry_dart_plugin:3.4.0'pubspec.yaml
name: sentry_dart_plugin
version: 3.4.0
description: Uploads debug symbols to Sentry for server-side symbolication.
homepage: https://docs.sentry.io/platforms/dart/
repository: https://github.com/getsentry/sentry-dart-plugin
environment:
sdk: '>=2.17.0 <4.0.0'
dependencies:
yaml: ^3.1.0
injector: ^3.0.0
ansicolor: ^2.0.1
system_info2: '>=3.0.1 <5.0.0'
file: '>=6.1.4 <8.0.0'
http: '>=0.13.0 <2.0.0'
crypto: ^3.0.2
convert: ^3.0.2
process: '>=4.2.4 <6.0.0'
properties: ^2.1.0
glob: ^2.1.3
dev_dependencies:
lints: '>=3.0.0'
test: ^1.21.6
platforms:
linux: null
windows: null
macos: null
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0-RC.1 | On demand | Download | 11dec15a…df7ef0 |
| 1.0.0-alpha.1 | On demand | Download | 4fa6974a…e0ad0e |
| 1.0.0-alpha.2 | On demand | Download | 73f85af3…d3370a |
| 1.0.0-alpha.3 | On demand | Download | 0e524cb0…c1793a |
| 1.0.0-alpha.4 | On demand | Download | 18e5c2c8…81edc6 |
| 1.0.0-beta.1 | On demand | Download | 34b16b80…1b2c7a |
| 1.0.0-beta.2 | On demand | Download | e81a3966…458cb0 |
| 1.0.0-beta.3 | On demand | Download | 08b31535…020aae |
| 1.0.0-beta.4 | On demand | Download | 7e48ae9b…31481d |
| 1.0.0-beta.5 | On demand | Download | e72b0163…fa76f3 |
| 1.0.0 | On demand | Download | 4b6b4acf…631f41 |
| 1.1.0 | On demand | Download | e41a6a7c…cbdaf6 |
| 1.2.0 | On demand | Download | 4707a8f4…ea8124 |
| 1.3.0 | On demand | Download | 239f7c01…d12381 |
| 1.4.0 | On demand | Download | 39626007…78dda0 |
| 1.5.0 | On demand | Download | b1474670…279256 |
| 1.6.0 | On demand | Download | 5b6607c3…e78551 |
| 1.6.2 | On demand | Download | 80f3c22b…48cae3 |
| 1.6.3 | On demand | Download | fb46695c…f7a2be |
| 1.7.0 | On demand | Download | b29713fb…a6005d |
| 1.7.1 | On demand | Download | e81fa3e0…e42b7d |
| 2.0.0 | On demand | Download | 2ad5ef14…e5e7c6 |
| 2.1.0 | On demand | Download | 699990cf…aaeec4 |
| 2.2.0 | On demand | Download | d9306031…01a8be |
| 2.2.1 | On demand | Download | 14c298de…285edf |
| 2.3.0 | On demand | Download | 5b33d2d1…ea4711 |
| 2.4.0 | On demand | Download | fb893ff2…d46b7f |
| 2.4.1 | On demand | Download | 84436958…4248a6 |
| 3.0.0 | On demand | Download | e49a1bb5…ad6367 |
| 3.1.0 | On demand | Download | d7c8166c…57ed59 |
| 3.1.1 | On demand | Download | 8c0c9fe1…847f53 |
| 3.2.0-beta.1 | On demand | Download | fdea3921…7c38db |
| 3.2.0 | On demand | Download | 4b25aa60…8973b5 |
| 3.2.1 | On demand | Download | 514cd5cc…6e622c |
| 3.3.0 | On demand | Download | 2c5f263f…b86ceb |
| 3.4.0 | Cached · Upstream SHA-256 matched | Download | da9c1d0b…340c97 |
Dependencies
ansicolor "^2.0.1"
convert "^3.0.2"
crypto "^3.0.2"
file "\u003e=6.1.4 \u003c8.0.0"
glob "^2.1.3"
http "\u003e=0.13.0 \u003c2.0.0"
injector "^3.0.0"
process "\u003e=4.2.4 \u003c6.0.0"
properties "^2.1.0"
system_info2 "\u003e=3.0.1 \u003c5.0.0"
yaml "^3.1.0"