mirror of
https://github.com/flutter/packages.git
synced 2025-06-29 22:33:11 +08:00
[metrics_center] Remove Equatable dependency (#4444)
Fixes https://github.com/flutter/flutter/issues/83100
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
## 1.0.11
|
||||
|
||||
* Removes the dependency on `package:equatable`.
|
||||
|
||||
## 1.0.10
|
||||
|
||||
* Adds retry logic when removing a `GcsLock` file lock in case of failure.
|
||||
|
@ -6,13 +6,11 @@ import 'dart:collection';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:crypto/crypto.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
import 'package:googleapis_auth/googleapis_auth.dart';
|
||||
import 'package:http/http.dart';
|
||||
|
||||
/// Common format of a metric data point.
|
||||
class MetricPoint extends Equatable {
|
||||
class MetricPoint {
|
||||
/// Creates a new data point.
|
||||
MetricPoint(
|
||||
this.value,
|
||||
@ -25,6 +23,7 @@ class MetricPoint extends Equatable {
|
||||
/// Test name, unit, timestamp, configs, git revision, ..., in sorted order.
|
||||
UnmodifiableMapView<String, String> get tags =>
|
||||
UnmodifiableMapView<String, String>(_tags);
|
||||
final SplayTreeMap<String, String> _tags;
|
||||
|
||||
/// Unique identifier for updating existing data point.
|
||||
///
|
||||
@ -39,11 +38,6 @@ class MetricPoint extends Equatable {
|
||||
String toString() {
|
||||
return 'MetricPoint(value=$value, tags=$_tags)';
|
||||
}
|
||||
|
||||
final SplayTreeMap<String, String> _tags;
|
||||
|
||||
@override
|
||||
List<Object?> get props => <Object?>[value, tags];
|
||||
}
|
||||
|
||||
/// Interface to write [MetricPoint].
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: metrics_center
|
||||
version: 1.0.10
|
||||
version: 1.0.11
|
||||
description:
|
||||
Support multiple performance metrics sources/formats and destinations.
|
||||
repository: https://github.com/flutter/packages/tree/main/packages/metrics_center
|
||||
@ -11,7 +11,6 @@ environment:
|
||||
dependencies:
|
||||
_discoveryapis_commons: ^1.0.0
|
||||
crypto: ^3.0.1
|
||||
equatable: ^2.0.3
|
||||
gcloud: ^0.8.2
|
||||
googleapis: ^3.0.0
|
||||
googleapis_auth: ^1.1.0
|
||||
|
Reference in New Issue
Block a user