diff --git a/CHANGELOG.md b/CHANGELOG.md index 369d75b..8683f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# [0.3.1-dev.4] + +* bump up firebase_performance + # [0.3.1-dev.3] * Update Dependencies (thx abahnj) diff --git a/lib/src/dio_firebase_performance.dart b/lib/src/dio_firebase_performance.dart index 5bdee86..a603536 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; @@ -115,7 +115,7 @@ extension _UriHttpMethod on Uri { } extension _StringHttpMethod on String { - HttpMethod? asHttpMethod() { + HttpMethod asHttpMethod() { switch (toUpperCase()) { case "POST": return HttpMethod.Post; @@ -130,7 +130,7 @@ extension _StringHttpMethod on String { case "OPTIONS": return HttpMethod.Options; default: - return null; + return HttpMethod.Trace; } } } diff --git a/pubspec.yaml b/pubspec.yaml index a86f3db..4d14027 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dio_firebase_performance description: A new Flutter package project. -version: 0.3.1-dev.3 +version: 0.3.1-dev.4 homepage: https://github.com/eyeem/dio_firebase_performance environment: @@ -9,8 +9,8 @@ environment: dependencies: flutter: sdk: flutter - dio: ^4.0.0 - firebase_performance: ^0.7.0 + dio: ^4.0.0-beta7 + firebase_performance: ^0.8.2+3 dev_dependencies: flutter_test: