rocket_chat_dart 0.0.38

  • Readme
  • Changelog
  • Installing
  • 70

Rocket.Chat.Dart.SDK #

Similar to Rocket.Chat.Go.SDK and implement APIs according to the Rocket Chat document. This SDK could be use in both in server side and in flutter. Not sure that this works or not in the browser.

Pub Site #

https://pub.dartlang.org/packages/rocket_chat_dart

Usage #

  • Add rocket_chat_dart to your pubspec.yaml file's dependency.
  • run pub get or flutter packages get

0.0.38 (2018-12-09) #

  • Upgrade dependency and refine them.

0.0.37 (2018-11-17) #

  • Add Channels close
  • Add API for unsub a channel's messages.
  • Update ddp client to version 0.0.9.

0.0.36 (2018-11-13) #

Feature: #

0.0.35 (2018-11-13) #

Feature: #

  • Add list groups and ims

0.0.34 (2018-11-7) #

Feature: #

  • Fix realtime channel api wrong url

0.0.34 (2018-11-7) #

Feature: #

  • Fix realtime channel api wrong url

0.0.33 (2018-11-7) #

Feature: #

  • Add channel members api

0.0.32 (2018-11-6) #

Feature: #

  • Add channels api

0.0.31 (2018-10-27) #

Feature: #

  • Add react message.
  • Add Message's reactions fields

0.0.30 (2018-10-24) #

Feature: #

  • Add type for messsage
  • Fix send message response error
  • Leave group response change to void

0.0.29 (2018-10-21) #

Features: #

  • Update description of pubspec.yaml

0.0.28 (2018-10-21) #

Features: #

  • Fulfill description of pubspec.yaml

0.0.27 (2018-10-21) #

Features: #

  • Fulfill README.md

0.0.26 (2018-10-21) #

Features: #

  • Add CHANGELOG.md :P

0.0.17 to 0.0.25 (2018-10-21) #

Features: #

  • Hack response header Content-Type from application/json to application/json; charset=utf-8
  • Group members api
  • Add attachment field to message

0.0.6 to 0.0.16 (2018-10-07) #

Features: #

  • Add IM api
  • Add subscriptions rest call
  • Add rooms api
  • Use build_runner to generate Unmarshaller/marshaller for models

Bug Fixes: #

  • Add missing JsonKey for models.
  • Add missing dependencies

0.0.4 and 0.0.5 (2018-09-30) #

Features: #

  • Change unread to int type.

0.0.3 (2018-09-26) #

Bug Fixes: #

  • Update ddp version.
  • DDP Log configurable.

0.0.2 (2018-09-26) #

Features: #

  • change collection update name.

0.0.1 (2018-09-22) #

Features: #

  • Draft edition

Use this package as a library

1. Depend on it

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


dependencies:
  rocket_chat_dart: ^0.0.38

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:rocket_chat_dart/models/channel.dart';
import 'package:rocket_chat_dart/models/info.dart';
import 'package:rocket_chat_dart/models/message.dart';
import 'package:rocket_chat_dart/models/models.dart';
import 'package:rocket_chat_dart/models/models.g.dart';
import 'package:rocket_chat_dart/models/permissons.dart';
import 'package:rocket_chat_dart/models/user.dart';
import 'package:rocket_chat_dart/models/user_credentials.dart';
import 'package:rocket_chat_dart/realtime/channels.dart';
import 'package:rocket_chat_dart/realtime/client.dart';
import 'package:rocket_chat_dart/realtime/emoji.dart';
import 'package:rocket_chat_dart/realtime/events.dart';
import 'package:rocket_chat_dart/realtime/messages.dart';
import 'package:rocket_chat_dart/realtime/permissons.dart';
import 'package:rocket_chat_dart/realtime/subscriptions.dart';
import 'package:rocket_chat_dart/realtime/users.dart';
import 'package:rocket_chat_dart/rest/channels.dart';
import 'package:rocket_chat_dart/rest/chat.dart';
import 'package:rocket_chat_dart/rest/client.dart';
import 'package:rocket_chat_dart/rest/client.g.dart';
import 'package:rocket_chat_dart/rest/groups.dart';
import 'package:rocket_chat_dart/rest/im.dart';
import 'package:rocket_chat_dart/rest/rooms.dart';
import 'package:rocket_chat_dart/rest/subscriptions.dart';
import 'package:rocket_chat_dart/rest/users.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
53
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
70
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Health issues and suggestions

Document public APIs. (-1 points)

300 out of 300 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/models/models.g.dart. (-0.50 points)

Analysis of lib/models/models.g.dart reported 1 hint:

line 175 col 22: The declaration '_$ReactionItemToJson' isn't referenced.

Fix lib/realtime/users.dart. (-0.50 points)

Analysis of lib/realtime/users.dart reported 1 hint:

line 56 col 38: Equality operator == invocation with references of unrelated types.

Format lib/models/models.dart.

Run dartfmt to format lib/models/models.dart.

Format lib/realtime/subscriptions.dart.

Run dartfmt to format lib/realtime/subscriptions.dart.

Format lib/rest/channels.dart.

Run dartfmt to format lib/rest/channels.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 (json_annotation).

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 rocket_chat_dart.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
crypto ^2.0.6 2.1.3
ddp ^0.0.9 0.0.13
http ^0.12.0 0.12.0+2
json_annotation ^2.0.0 2.4.0 3.0.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
matcher 0.12.5
meta 1.1.7
path 1.6.4
pedantic 1.8.0+1
quiver 2.0.5
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
tuple 1.0.3
typed_data 1.1.6
Dev dependencies
build_runner ^1.0.0
json_serializable ^2.0.0
test ^1.3.0