diff --git a/CHANGELOG.md b/CHANGELOG.md index 9704c0ce..ee71ced9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ # Changelog -## TBD +## 2.1.0 (2022-06-14) +- Networking breadcrumbs can now be easily captured by using the `bugsnag_breadcrumbs_http` or `bugsnag_breadcrumbs_dart_io` packages + [#116](https://github.com/bugsnag/bugsnag-flutter/pull/116) + [#115](https://github.com/bugsnag/bugsnag-flutter/pull/115) +- Added `BugsnagNavigatorObserver` to automatically log navigation breadcrumbs and context - Column numbers will be captured as `null` instead of `-1` when they're not available - []() + [#139](https://github.com/bugsnag/bugsnag-flutter/pull/139) ## 2.0.2 (2022-05-30) diff --git a/Makefile b/Makefile index 560ddaf4..9922db76 100644 --- a/Makefile +++ b/Makefile @@ -27,15 +27,29 @@ endif sed -i '' "s/^version: .*/version: $(VERSION)/" packages/bugsnag_breadcrumbs_http/pubspec.yaml sed -i '' "s/^ 'version': .*/ 'version': '$(VERSION)'/" packages/bugsnag_flutter/lib/src/client.dart -stage: clean - mkdir staging - cd packages/bugsnag_flutter && cp -a . ../../staging/ - rm -f staging/pubspec.lock - cp -r example staging/example - cp README.md staging/. - cp LICENSE staging/. - cp CHANGELOG.md staging/. - sed -i '' -e '1,2d' staging/CHANGELOG.md +staging/bugsnag_flutter: + mkdir -p staging/bugsnag_flutter + cd packages/bugsnag_flutter && cp -a . ../../staging/bugsnag_flutter + rm -f staging/bugsnag_flutter/pubspec.lock + cp -r example staging/bugsnag_flutter/example + cp README.md staging/bugsnag_flutter/. + cp LICENSE staging/bugsnag_flutter/. + cp CHANGELOG.md staging/bugsnag_flutter/. + sed -i '' -e '1,2d' staging/bugsnag_flutter/CHANGELOG.md + +BSG_FLUTTER_VERSION:=$(shell grep 'version: ' packages/bugsnag_flutter/pubspec.yaml | grep -o '[0-9].*') +staging/%: + mkdir -p staging/$* + cd packages/$* && cp -a . ../../staging/$* + rm -f staging/$*/pubspec.lock + cp LICENSE staging/$*/. + cp CHANGELOG.md staging/$*/. + sed -i '' -e '1,2d' staging/$*/CHANGELOG.md + # Replace the path references to bugsnag_flutter with version-based references, and allow publishing (strip lines with 'publish_to: none') + sed -i '' "s/^ bugsnag_flutter:.*/ bugsnag_flutter: ^$(BSG_FLUTTER_VERSION)/" staging/$*/pubspec.yaml + sed -i '' "s/path:.*/ /;s/publish_to: none/ /" staging/$*/pubspec.yaml + +stage: clean staging/bugsnag_flutter staging/bugsnag_breadcrumbs_dart_io staging/bugsnag_breadcrumbs_http aar: cd packages/bugsnag_flutter && $(FLUTTER_BIN) build aar --suppress-analytics diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 8b2b26f9..359d0419 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -11,7 +11,9 @@ Releasing - Run `git clean -df` to ensure no unexpected files make it into the release - Creating the staged release: `make stage` - Publish the new version to pub.dev: - - `cd staging && flutter pub publish` + - `cd staging/bugsnag_flutter && flutter pub publish` + - `cd staging/bugsnag_breadcrumbs_dart_io && flutter pub publish` + - `cd staging/bugsnag_breadcrumbs_http && flutter pub publish` - Release on GitHub: - Create a release and tag from `main` on [GitHub Releases](https://github.com/bugsnag/bugsnag-flutter/releases) diff --git a/packages/bugsnag_breadcrumbs_dart_io/pubspec.yaml b/packages/bugsnag_breadcrumbs_dart_io/pubspec.yaml index 778fa4ff..8d18a0ea 100644 --- a/packages/bugsnag_breadcrumbs_dart_io/pubspec.yaml +++ b/packages/bugsnag_breadcrumbs_dart_io/pubspec.yaml @@ -1,6 +1,6 @@ name: bugsnag_breadcrumbs_dart_io description: Bugsnag network breadcrumbs for dart:io's HttpClient -version: 2.0.0 +version: 2.1.0 homepage: https://www.bugsnag.com/ documentation: https://docs.bugsnag.com/platforms/flutter/ repository: https://github.com/bugsnag/bugsnag-flutter diff --git a/packages/bugsnag_breadcrumbs_http/pubspec.yaml b/packages/bugsnag_breadcrumbs_http/pubspec.yaml index dde3f0e1..0b7e6932 100644 --- a/packages/bugsnag_breadcrumbs_http/pubspec.yaml +++ b/packages/bugsnag_breadcrumbs_http/pubspec.yaml @@ -1,6 +1,6 @@ name: bugsnag_breadcrumbs_http description: Bugsnag network breadcrumbs for https://pub.dev/packages/http -version: 2.0.0 +version: 2.1.0 homepage: https://www.bugsnag.com/ documentation: https://docs.bugsnag.com/platforms/flutter/ repository: https://github.com/bugsnag/bugsnag-flutter diff --git a/packages/bugsnag_flutter/lib/src/client.dart b/packages/bugsnag_flutter/lib/src/client.dart index 54f65ec6..581f9dd4 100644 --- a/packages/bugsnag_flutter/lib/src/client.dart +++ b/packages/bugsnag_flutter/lib/src/client.dart @@ -17,7 +17,7 @@ import 'model.dart'; final _notifier = { 'name': 'Flutter Bugsnag Notifier', 'url': 'https://github.com/bugsnag/bugsnag-flutter', - 'version': '2.0.2' + 'version': '2.1.0' }; abstract class BugsnagClient { diff --git a/packages/bugsnag_flutter/pubspec.yaml b/packages/bugsnag_flutter/pubspec.yaml index 6f9cf1bf..f611ac82 100644 --- a/packages/bugsnag_flutter/pubspec.yaml +++ b/packages/bugsnag_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: bugsnag_flutter description: Bugsnag crash monitoring and reporting tool for Flutter apps -version: 2.0.2 +version: 2.1.0 homepage: https://www.bugsnag.com/ documentation: https://docs.bugsnag.com/platforms/flutter/ repository: https://github.com/bugsnag/bugsnag-flutter