Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pkgs/unified_analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
## 7.0.2
- Send `enabled_features` as an event parameter in all events rather than as a user property.

## 7.0.1
- Fixed `UnsupportedError` thrown when Event.exception is called without providing a value for `args`.

Expand Down
7 changes: 1 addition & 6 deletions pkgs/unified_analytics/lib/src/analytics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ class AnalyticsImpl implements Analytics {
final File _clientIdFile;
final UserProperty _userProperty;
final LogHandler _logHandler;
final String? _enabledFeatures;

/// Tells the client if they need to show a message to the
/// user; this will return true if it is the first time the
Expand Down Expand Up @@ -407,8 +406,8 @@ class AnalyticsImpl implements Analytics {
truncateStringToLength(io.Platform.operatingSystemVersion, 36),
locale: io.Platform.localeName,
clientIde: clientIde,
enabledFeatures: enabledFeatures,
),
_enabledFeatures = enabledFeatures,
_configHandler = ConfigHandler(
homeDirectory: homeDirectory,
configFile: homeDirectory
Expand Down Expand Up @@ -614,7 +613,6 @@ class AnalyticsImpl implements Analytics {
eventName: event.eventName,
eventData: event.eventData,
userProperty: _userProperty,
enabledFeatures: _enabledFeatures,
);

if (_enableAsserts) checkBody(body);
Expand Down Expand Up @@ -656,7 +654,6 @@ class AnalyticsImpl implements Analytics {
eventName: collectionEvent.eventName,
eventData: collectionEvent.eventData,
userProperty: _userProperty,
enabledFeatures: _enabledFeatures,
);

_logHandler.save(data: body);
Expand All @@ -667,7 +664,6 @@ class AnalyticsImpl implements Analytics {
clientId: clientId,
eventName: collectionEvent.eventName,
eventData: collectionEvent.eventData,
enabledFeatures: _enabledFeatures,
userProperty: _userProperty,
);

Expand Down Expand Up @@ -778,7 +774,6 @@ class FakeAnalytics extends AnalyticsImpl {
eventName: event.eventName,
eventData: event.eventData,
userProperty: _userProperty,
enabledFeatures: _enabledFeatures,
);

if (_enableAsserts) checkBody(body);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/unified_analytics/lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '7.0.2';
const String kPackageVersion = '7.0.1';

/// The minimum length for a session.
const int kSessionDurationMinutes = 30;
Expand Down
Loading