Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lemnik committed Jun 14, 2022
1 parent 4aec319 commit f283b3d
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 16 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
32 changes: 23 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/bugsnag_breadcrumbs_dart_io/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/bugsnag_breadcrumbs_http/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/bugsnag_flutter/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/bugsnag_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f283b3d

Please sign in to comment.