From 0374cd1d3ff38bd386ff287c1f6e8e83f56fafaf Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 3 Aug 2023 13:26:18 -0300 Subject: [PATCH 1/2] Fixed breadcrumbs not being sorted correctly in obfuscated builds --- rollbar_dart/lib/src/telemetry.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollbar_dart/lib/src/telemetry.dart b/rollbar_dart/lib/src/telemetry.dart index 9ae08f8..38f29b4 100644 --- a/rollbar_dart/lib/src/telemetry.dart +++ b/rollbar_dart/lib/src/telemetry.dart @@ -26,7 +26,7 @@ class Telemetry with Persistence implements Configurable { ); List breadcrumbs() => records - .sorted(by: #BreadcrumbRecord.timestamp) + .sorted(by: Symbol('${(BreadcrumbRecord).toString()}.timestamp')) .map((record) => jsonDecode(record.breadcrumb) as JsonMap) .map(Breadcrumb.fromMap) .toList(); From af0e10db513b584a1a4fc7d75fa60a59ad4ab9e1 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 3 Aug 2023 13:29:12 -0300 Subject: [PATCH 2/2] Updated Dart SDK version and changelog --- rollbar_dart/CHANGELOG.md | 4 ++++ rollbar_dart/example/pubspec.yaml | 2 +- rollbar_dart/lib/src/notifier/notifier.dart | 2 +- rollbar_dart/pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rollbar_dart/CHANGELOG.md b/rollbar_dart/CHANGELOG.md index 96b8b89..a76cd00 100644 --- a/rollbar_dart/CHANGELOG.md +++ b/rollbar_dart/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.3.1 + +- Fixed breadcrumbs not being processed in the right order in obfuscated builds. + ## 1.3.0 - The log, debug, info, warn, error and critical methods in `Rollbar` now accept any type of object including `Error`, `Exception` and `String`. Dart objects that specialize `toString()` can be also passed and they'll be converted into their string representations. diff --git a/rollbar_dart/example/pubspec.yaml b/rollbar_dart/example/pubspec.yaml index fbba6c1..0e40c7f 100644 --- a/rollbar_dart/example/pubspec.yaml +++ b/rollbar_dart/example/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: logging: ^1.0.2 - rollbar_dart: ^1.1.0 + rollbar_dart: ^1.3.0 dependency_overrides: rollbar_common: diff --git a/rollbar_dart/lib/src/notifier/notifier.dart b/rollbar_dart/lib/src/notifier/notifier.dart index 2b1f2fa..381abec 100644 --- a/rollbar_dart/lib/src/notifier/notifier.dart +++ b/rollbar_dart/lib/src/notifier/notifier.dart @@ -6,7 +6,7 @@ import 'package:rollbar_dart/rollbar_dart.dart'; @sealed abstract class Notifier { // notifier version to be updated with each new release: [todo] automate - static const version = '1.3.0'; + static const version = '1.3.1'; static const name = 'rollbar-dart'; FutureOr notify(Context state, final Event event); diff --git a/rollbar_dart/pubspec.yaml b/rollbar_dart/pubspec.yaml index ef02eeb..cdf5644 100644 --- a/rollbar_dart/pubspec.yaml +++ b/rollbar_dart/pubspec.yaml @@ -1,6 +1,6 @@ name: rollbar_dart description: Connect your Dart applications to Rollbar for error reporting. -version: 1.3.0 +version: 1.3.1 homepage: https://www.rollbar.com documentation: https://docs.rollbar.com/docs/flutter#dart repository: https://github.com/rollbar/rollbar-flutter