Skip to content

Commit

Permalink
fix: web source context upload (#285)
Browse files Browse the repository at this point in the history
* fix: web source context upload

* chore: changelog
  • Loading branch information
vaind authored Nov 29, 2024
1 parent 18d2afa commit 1b46a7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- Dart source context on web missing ([#285](https://github.com/getsentry/sentry-dart-plugin/pull/285))

## 2.2.0

### Changes
Expand Down
3 changes: 1 addition & 2 deletions lib/sentry_dart_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ class SentryDartPlugin {
List<String> releaseDartFilesParams = [];
releaseDartFilesParams.addAll(params);

_addExtensionToParams(['dart'], releaseDartFilesParams, release,
_configuration.buildFilesFolder);
_addExtensionToParams(['dart'], releaseDartFilesParams, release, 'lib');

_addWait(releaseDartFilesParams);

Expand Down
2 changes: 1 addition & 1 deletion test/plugin_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void main() {
'$cli $args debug-files upload $orgAndProject --include-sources $buildDir/app/outputs',
'$cli $args releases $orgAndProject new $release',
'$cli $args releases $orgAndProject files $release upload-sourcemaps $buildDir/web --ext map --ext js',
'$cli $args releases $orgAndProject files $release upload-sourcemaps $buildDir --ext dart',
'$cli $args releases $orgAndProject files $release upload-sourcemaps lib --ext dart',
'$cli $args releases $orgAndProject set-commits $release --auto --ignore-missing',
'$cli $args releases $orgAndProject finalize $release'
]);
Expand Down

0 comments on commit 1b46a7c

Please sign in to comment.