From 667abf0b4bbe561536613b6959eb3bd0e758d7d5 Mon Sep 17 00:00:00 2001 From: John Castronuovo Date: Thu, 15 Apr 2021 08:19:40 +0200 Subject: [PATCH 1/3] refactor(dio_firebase_performance): add null operator on asHttpMethod() --- lib/src/dio_firebase_performance.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/dio_firebase_performance.dart b/lib/src/dio_firebase_performance.dart index 8a1ea4f..5bdee86 100644 --- a/lib/src/dio_firebase_performance.dart +++ b/lib/src/dio_firebase_performance.dart @@ -27,7 +27,7 @@ class DioFirebasePerformanceInterceptor extends Interceptor { RequestOptions options, RequestInterceptorHandler handler) async { try { final metric = FirebasePerformance.instance.newHttpMetric( - options.uri.normalized(), options.method.asHttpMethod()); + options.uri.normalized(), options.method.asHttpMethod()!); final requestKey = options.extra.hashCode; _map[requestKey] = metric; From 088126ef9e223b909cbdc8548cec5a0a8b2e8dac Mon Sep 17 00:00:00 2001 From: John Castronuovo Date: Thu, 15 Apr 2021 08:20:26 +0200 Subject: [PATCH 2/3] chore(pubspec): update dio to 4.0 and firebase_performance to 0.7.0 --- pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index fb3b987..91cf28a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,8 +9,8 @@ environment: dependencies: flutter: sdk: flutter - dio: ^4.0.0-prev3 - firebase_performance: ^0.6.0 + dio: ^4.0.0 + firebase_performance: ^0.7.0 dev_dependencies: flutter_test: From 4697c9560cc3d5c612f0ded0e3afb718b32d1b91 Mon Sep 17 00:00:00 2001 From: John Castronuovo Date: Tue, 27 Apr 2021 08:26:10 +0200 Subject: [PATCH 3/3] chore(pubspec): update deps --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 91cf28a..3134b5e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter dio: ^4.0.0 - firebase_performance: ^0.7.0 + firebase_performance: ^0.7.0+2 dev_dependencies: flutter_test: