dio_firebase_performance 0.1.0

  • Readme
  • Changelog
  • Installing
  • 82

dio_firebase_performance #

Dio's Interceptor implementation that sends http request metric data to Firebase.

STATUS: works for us in production.

Usage #

final dio = Dio();
final performanceInterceptor = DioFirebasePerformanceInterceptor();
dio.interceptors.add(performanceInterceptor);

SUGGESTION: If you use dio client as a singleton you can use this interceptor as singleton as well.

[0.1.0] #

  • updated project status as used in production (by EyeEm)
  • README typo fix -via bounty1342
  • full path issue fix -via Frully

[0.0.1] #

  • Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dio_firebase_performance: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dio_firebase_performance/dio_firebase_performance.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
77
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
82
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform linux

Because:

  • package:dio_firebase_performance/dio_firebase_performance.dart that imports:
  • package:dio_firebase_performance/src/dio_firebase_performance.dart that imports:
  • package:firebase_performance/firebase_performance.dart that declares support for platforms: android, ios

Package does not support Flutter platform macos

Because:

  • package:dio_firebase_performance/dio_firebase_performance.dart that imports:
  • package:dio_firebase_performance/src/dio_firebase_performance.dart that imports:
  • package:firebase_performance/firebase_performance.dart that declares support for platforms: android, ios

Package does not support Flutter platform web

Because:

  • package:dio_firebase_performance/dio_firebase_performance.dart that imports:
  • package:dio_firebase_performance/src/dio_firebase_performance.dart that imports:
  • package:firebase_performance/firebase_performance.dart that declares support for platforms: android, ios

Package does not support Flutter platform windows

Because:

  • package:dio_firebase_performance/dio_firebase_performance.dart that imports:
  • package:dio_firebase_performance/src/dio_firebase_performance.dart that imports:
  • package:firebase_performance/firebase_performance.dart that declares support for platforms: android, ios

Package not compatible with SDK dart

Because:

  • dio_firebase_performance that is a package requiring null.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and dio_firebase_performance.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
dio ^3.0.9 3.0.9
firebase_performance ^0.3.1+7 0.3.2
flutter 0.0.0
Transitive dependencies
charcode 1.1.3
collection 1.14.12 1.14.13
http_parser 3.1.4
meta 1.1.8 1.2.2
path 1.7.0
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test