diff --git a/pkgs/unified_analytics/CHANGELOG.md b/pkgs/unified_analytics/CHANGELOG.md index bee8205e..a409d15d 100644 --- a/pkgs/unified_analytics/CHANGELOG.md +++ b/pkgs/unified_analytics/CHANGELOG.md @@ -1,3 +1,6 @@ +## 6.1.6-wip +- Added `isV2Inspector` to the `Event.devtoolsEvent` constructor. + ## 6.1.5 - Remove any `data` entries with a null value in the `Event.exception` constructor. diff --git a/pkgs/unified_analytics/lib/src/constants.dart b/pkgs/unified_analytics/lib/src/constants.dart index 8982ee57..d671d2bd 100644 --- a/pkgs/unified_analytics/lib/src/constants.dart +++ b/pkgs/unified_analytics/lib/src/constants.dart @@ -87,7 +87,7 @@ const int kMaxLogFileSize = 25 * (1 << 20); const String kLogFileName = 'dart-flutter-telemetry.log'; /// The current version of the package, should be in line with pubspec version. -const String kPackageVersion = '6.1.5'; +const String kPackageVersion = '6.1.6-wip'; /// The minimum length for a session. const int kSessionDurationMinutes = 30; diff --git a/pkgs/unified_analytics/lib/src/event.dart b/pkgs/unified_analytics/lib/src/event.dart index 0b5450d6..045de63a 100644 --- a/pkgs/unified_analytics/lib/src/event.dart +++ b/pkgs/unified_analytics/lib/src/event.dart @@ -399,6 +399,7 @@ final class Event { int? rootSetCount, int? rowCount, int? inspectorTreeControllerId, + bool? isV2Inspector, // DeepLinkScreenMetrics String? androidAppId, @@ -450,6 +451,7 @@ final class Event { if (rowCount != null) 'rowCount': rowCount, if (inspectorTreeControllerId != null) 'inspectorTreeControllerId': inspectorTreeControllerId, + if (isV2Inspector != null) 'isV2Inspector': isV2Inspector, // DeepLinkScreenMetrics if (androidAppId != null) 'androidAppId': androidAppId, if (iosBundleId != null) 'iosBundleId': iosBundleId, diff --git a/pkgs/unified_analytics/pubspec.yaml b/pkgs/unified_analytics/pubspec.yaml index 5ee0e426..49be6593 100644 --- a/pkgs/unified_analytics/pubspec.yaml +++ b/pkgs/unified_analytics/pubspec.yaml @@ -5,7 +5,7 @@ description: >- # LINT.IfChange # When updating this, keep the version consistent with the changelog and the # value in lib/src/constants.dart. -version: 6.1.5 +version: 6.1.6-wip # LINT.ThenChange(lib/src/constants.dart) repository: https://github.com/dart-lang/tools/tree/main/pkgs/unified_analytics issue_tracker: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics diff --git a/pkgs/unified_analytics/test/event_test.dart b/pkgs/unified_analytics/test/event_test.dart index 2809af96..43df5729 100644 --- a/pkgs/unified_analytics/test/event_test.dart +++ b/pkgs/unified_analytics/test/event_test.dart @@ -587,6 +587,7 @@ void main() { rootSetCount: 123, rowCount: 123, inspectorTreeControllerId: 123, + isV2Inspector: true, androidAppId: 'androidAppId', iosBundleId: 'iosBundleId', ); @@ -624,6 +625,7 @@ void main() { expect(constructedEvent.eventData['rootSetCount'], 123); expect(constructedEvent.eventData['rowCount'], 123); expect(constructedEvent.eventData['inspectorTreeControllerId'], 123); + expect(constructedEvent.eventData['isV2Inspector'], true); expect(constructedEvent.eventData['androidAppId'], 'androidAppId'); expect(constructedEvent.eventData['iosBundleId'], 'iosBundleId'); expect(constructedEvent.eventData.length, 30);