realtime_data_model 0.0.22

  • README.md
  • Installing
  • Versions
  • 22

Dart Realtime Data Model

###based on Dart Google Drive Realtime

This project is a library that constrains the Dart Google Drive Realtime API and provides a local implementation so that applications can write to a single API whether the backing data is a Google Document or a local object. It is based on Dart Google Drive Realtime.

Usage

To use this library in your code :

  • add a dependency in your pubspec.yaml :
dependencies:
  realtime_data_model: "0.0.0"
  • add import in your dart code :
import 'package:realtime_data_model/realtime_data_model.dart';
start(realtimeOptions, local: true)

The library is currently unstable and does not support custom objects or databinding.

License

Apache 2.0

Use this package as a library

1. Depend on it

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


dependencies:
  realtime_data_model: "^0.0.22"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:realtime_data_model/realtime_data_model.dart';
  
Version Uploaded Documentation Archive
0.0.22 Feb 24, 2016 Go to the documentation of realtime_data_model 0.0.22 Download realtime_data_model 0.0.22 archive
0.0.21 Feb 12, 2016 Go to the documentation of realtime_data_model 0.0.21 Download realtime_data_model 0.0.21 archive
0.0.20 Oct 23, 2015 Go to the documentation of realtime_data_model 0.0.20 Download realtime_data_model 0.0.20 archive
0.0.19 Oct 9, 2015 Go to the documentation of realtime_data_model 0.0.19 Download realtime_data_model 0.0.19 archive
0.0.18 Jul 22, 2015 Go to the documentation of realtime_data_model 0.0.18 Download realtime_data_model 0.0.18 archive
0.0.17 Jul 22, 2015 Go to the documentation of realtime_data_model 0.0.17 Download realtime_data_model 0.0.17 archive
0.0.16 Jun 26, 2015 Go to the documentation of realtime_data_model 0.0.16 Download realtime_data_model 0.0.16 archive
0.0.14 Jun 17, 2015 Go to the documentation of realtime_data_model 0.0.14 Download realtime_data_model 0.0.14 archive
0.0.13 May 6, 2015 Go to the documentation of realtime_data_model 0.0.13 Download realtime_data_model 0.0.13 archive
0.0.12 May 6, 2015 Go to the documentation of realtime_data_model 0.0.12 Download realtime_data_model 0.0.12 archive

All 23 versions...

Analysis

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

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
73 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
22
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/realtime_data_model_databinding.dart: Target of URI doesn't exist: 'package:js/js.dart'.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/realtime_data_model_databinding.dart: Target of URI doesn't exist: 'package:js/js.dart'.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 40 errors 52 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/realtime_data_model_databinding.dart: Target of URI doesn't exist: 'package:js/js.dart'.

    Strong-mode analysis of lib/src/databinding/already_bound_error.dart failed with the following error:

    line: 20 col: 49
    The class 'Object' doesn't have a constructor named 'fromProxy'.

    Similar analysis of the following files failed:

    • lib/src/databinding/binding.dart (error)
    • lib/src/docprovider/DocumentProvider.dart (error)
    • lib/src/docprovider/PersistentDocProvider.dart (error)
    • lib/src/realtime/CollaborativeList.dart (error)
    • lib/src/realtime/CollaborativeMap.dart (error)
    • lib/src/realtime/CollaborativeObject.dart (error)
    • lib/src/realtime/CollaborativeString.dart (error)
    • lib/src/realtime/Document.dart (error)
    • lib/src/realtime/IndexReference.dart (error)
    • lib/src/realtime/Model.dart (error)
    • lib/src/realtime/ObjectChangedEvent.dart (error)
    • lib/src/realtime/TypePromoter.dart (error)
    • lib/realtime_data_model.dart (hint)
    • lib/realtime_data_model_custom.dart (hint)
    • lib/src/custom/CustomObject.dart (hint)
    • lib/src/docprovider/GoogleDocProvider.dart (hint)
    • lib/src/docprovider/LocalDocumentProvider.dart (hint)
    • lib/src/docprovider/RemoteDocumentProvider.dart (hint)
    • lib/src/realtime/BaseModelEvent.dart (hint)
    • lib/src/realtime/CollaborativeContainer.dart (hint)
    • lib/src/realtime/CollaborativeTypes.dart (hint)
    • lib/src/realtime/Collaborator.dart (hint)
    • lib/src/realtime/CollaboratorJoinedEvent.dart (hint)
    • lib/src/realtime/CollaboratorLeftEvent.dart (hint)
    • lib/src/realtime/DocumentSaveStateChangedEvent.dart (hint)
    • lib/src/realtime/EventTarget.dart (hint)
    • lib/src/realtime/EventType.dart (hint)
    • lib/src/realtime/ReferenceShiftedEvent.dart (hint)
    • lib/src/realtime/TextDeletedEvent.dart (hint)
    • lib/src/realtime/TextInsertedEvent.dart (hint)
    • lib/src/realtime/UndoRedoStateChangedEvent.dart (hint)
    • lib/src/realtime/ValueChangedEvent.dart (hint)
    • lib/src/realtime/ValuesAddedEvent.dart (hint)
    • lib/src/realtime/ValuesRemovedEvent.dart (hint)
    • lib/src/realtime/ValuesSetEvent.dart (hint)
    • lib/src/realtime/error_type.dart (hint)
    • lib/src/utils.dart (hint)
  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use realtime_data_model.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
googleapis >=0.5.4 <0.6.0 0.5.5 0.50.2
googleapis_auth >=0.2.2 <0.3.0 0.2.5
json >=0.8.1 <1.0.0 0.10.0
logging ^0.11.2 0.11.3+1
logging_handlers >=0.5.0 <1.0.0 0.8.0
meta >=0.8.8 <0.9.0 0.8.8 1.1.5
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.9
convert 1.1.1 2.0.1
crypto 0.9.2+1 2.0.3
http 0.11.3+16
http_parser 3.1.2
intl 0.15.6
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
browser >=0.9.0 <0.10.0
unittest >=0.9.0 <0.10.0