pure_mixpanel 1.0.7

pure_mixpanel #

A pure Dart library for Mixpanel analytics.

Running Tests #

This library has Flutter as a dependency for easier testability. The tests are true end to end tests, using a real Mixpanel account and API token that anyone is free to use. I decided against mocking the API for now to keep the codebase simple.

flutter test test/pure_mixpanel_test.dart

Features #

  • Event tracking

Upcoming Features #

[1.0.7] - 3/22/19

  • Update to work with Dart v2.2.1

[1.0.6] - 12/30/18

  • Upped versions to work with the latest version of Flutter.

[1.0.5] - 12/6/18

  • Support for optional IP tracking.

[1.0.2] - 7/9/18

  • Fix for siutations where debug flag isn't passed in constructor.

[1.0.1] - 7/8/18

  • Minor tweaks.

[1.0.0] - 7/7/18

  • Initial release, supporting Mixpanel event tracking.

Use this package as a library

1. Depend on it

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

  pure_mixpanel: ^1.0.7

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:pure_mixpanel/pure_mixpanel.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3


Detected platforms:

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running flutter pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.4.0.
 Because pure_mixpanel requires SDK version >=1.19.0 <=2.2.1, version solving failed.

Health suggestions

Format lib/pure_mixpanel.dart.

Run flutter format to format lib/pure_mixpanel.dart.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Support the latest stable Dart SDK in pubspec.yaml. (-20 points)

The SDK constraint in pubspec.yaml doesn't allow the latest stable Dart SDK release.

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.

The package description is too short. (-13 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 pure_mixpanel.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <=2.2.1