From 3b82705f1a01f3b368be69c5a3d826b95bb591a2 Mon Sep 17 00:00:00 2001 From: Mohammed Badsha Alamgir Date: Tue, 16 Mar 2021 00:02:56 +0600 Subject: [PATCH 1/3] test commit --- pubspec.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index dbf9a91..ad73414 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,12 +4,16 @@ version: 0.3.1 homepage: https://github.com/eyeem/dio_firebase_performance environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: sdk: flutter - dio: ^4.0.0-beta7 + dio: + git: + url: https://github.com/ARIFCSE10/dio + path: dio + ref: "4.0" firebase_performance: ^0.6.0 dev_dependencies: From 2fee961c9e22694298ae789e597b7d1928665040 Mon Sep 17 00:00:00 2001 From: Mohammed Badsha Alamgir Date: Thu, 7 Oct 2021 07:52:37 +0600 Subject: [PATCH 2/3] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index ad73414..c643579 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: url: https://github.com/ARIFCSE10/dio path: dio ref: "4.0" - firebase_performance: ^0.6.0 + firebase_performance: ^0.7.1+1 dev_dependencies: flutter_test: From a0a2842efb3a55763b84203d79043033814d622b Mon Sep 17 00:00:00 2001 From: Mohammed Badsha Alamgir Date: Thu, 7 Oct 2021 08:07:53 +0600 Subject: [PATCH 3/3] update null aware --- lib/src/dio_firebase_performance.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/dio_firebase_performance.dart b/lib/src/dio_firebase_performance.dart index b34a2eb..67ed589 100644 --- a/lib/src/dio_firebase_performance.dart +++ b/lib/src/dio_firebase_performance.dart @@ -113,7 +113,7 @@ extension _UriHttpMethod on Uri { } extension _StringHttpMethod on String { - HttpMethod? asHttpMethod() { + HttpMethod asHttpMethod() { switch (toUpperCase()) { case "POST": return HttpMethod.Post; @@ -128,7 +128,7 @@ extension _StringHttpMethod on String { case "OPTIONS": return HttpMethod.Options; default: - return null; + return HttpMethod.Trace; } } }