instabug_http_client 1.0.0

  • Readme
  • Changelog
  • Installing
  • 53

instabug_http_client #

A dart package to support Instabug network logging for the external dart http package.

Getting Started #

You can choose to attach all your network requests data to the Instabug reports being sent to the dashboard. See the details below on how to enable the feature for the http package.

Installation #

  1. Add the dependency to your project pubspec.yml:
dependencies:
   instabug_http_client: 
  1. Install the package by running the following command.
flutter packages get

Usage #

To enable logging, use the custom http client provided by Instabug:

InstabugHttpClient client = InstabugHttpClient();

Then proceed to use the package normally:

client.get(URL).then((response) async {

});

[1.0.0] - 29/7/2019.

  • Adds implementation for the instabug_http_client library which supports Instabug network logging for the dart library: http.

Use this package as a library

1. Depend on it

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


dependencies:
  instabug_http_client: ^1.0.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:instabug_http_client/instabug_http_client.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
14
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
53
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/instabug_http_client.dart.

Run flutter format to format lib/instabug_http_client.dart.

Format lib/instabug_http_logger.dart.

Run flutter format to format lib/instabug_http_logger.dart.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (instabug_flutter).

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 instabug_http_client.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.1.0 <3.0.0
flutter 0.0.0
http ^0.12.0+2 0.12.0+2
instabug_flutter ^1.0.0 1.0.0 8.6.4
meta ^1.1.6 1.1.7
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.11 1.14.12
http_parser 3.1.3
path 1.6.4
pedantic 1.8.0+1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
mockito any