dartivity_messaging 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 43

dartivity_messaging #

The messaging component of the Dartivity IOT suite.

This component provides the interface to Google's pub/sub service using the Dartivity Message class. This is a simple interface that can be used by any Dartivity components to perform the messaging function, such as Dartivty clients, and Dartivity messaging only clients.

The component can also be used as a Dartivity messaging interface in stand alone bridge applications, e.g from existing dart based IOT packages.

Currently only whoHas and IHave messages are implemented however this will be expanded upon as the Dartivity suite is expanded.

See the individual classes for more information.

1.0.0 #

  • Dart 2.0 updates

0.1.0 #

  • Initial version

example/example.dart

/*
 * Package : dartivity_messaging
 * Author : S. Hamblett <steve.hamblett@linux.com>
 * Date   : 04/09/2018
 * Copyright :  S.Hamblett 2018
 */

/// This package is a plugin/support package for the Dartivity IOT suite,
/// as such it has no specific standalone usage examples. See the test
/// suite for instantiation details.
int main() {
  return 0;
}

Use this package as a library

1. Depend on it

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


dependencies:
  dartivity_messaging: ^1.0.0

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:dartivity_messaging/dartivity_messaging.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
75
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Primary library: package:dartivity_messaging/dartivity_messaging.dart with components: io.

Health suggestions

Fix lib/src/dartivity_messaging.dart. (-5.84 points)

Analysis of lib/src/dartivity_messaging.dart reported 12 hints, including:

line 61 col 13: Unnecessary new keyword.

line 66 col 13: Unnecessary new keyword.

line 71 col 13: Unnecessary new keyword.

line 75 col 39: Unnecessary new keyword.

line 78 col 36: Unnecessary new keyword.

Fix lib/src/messages/dartivity_message.dart. (-1.99 points)

Analysis of lib/src/messages/dartivity_message.dart reported 4 hints:

line 33 col 13: Unnecessary new keyword.

line 52 col 13: Unnecessary new keyword.

line 70 col 11: Unnecessary new keyword.

line 154 col 28: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-25.21 points)

The package was last published 65 weeks ago.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
crypto >=2.0.1 <3.0.0 2.1.3
gcloud ^0.6.0+1 0.6.3
googleapis_auth ^0.2.5+2 0.2.11
json_object_lite ^2.0.0 2.1.0
Transitive dependencies
_discoveryapis_commons 0.1.9
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
googleapis 0.54.0
http 0.12.0+2
http_parser 3.1.3
meta 1.1.8
path 1.6.4
pedantic 1.9.0
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner ^0.10.0
build_test ^0.10.2
build_web_compilers ^0.4.0
coverage ^0.12.2
dart_style ^1.1.3
dartdoc ^0.20.3
test ^1.3.0