scarabei_reyer 2.1.0

scarabei_reyer

Pub Package GitHub Issues GitHub Forks GitHub Stars GitHub License

Default implementations if the scarabei API https://pub.dartlang.org/packages/scarabei

Installation

    L.installComponent(new SimpleLogger()); //logger
    Err.installComponent(new RedError()); //errors reporter
    Debug.installComponent(new RedDebug()); // asserts for debug and testing
    Utils.installComponent(new RedUtils()); //utils including the path-factory

    {
    
      //here we install a Windows file-system
      LocalFileSystem.installComponent(new WinFileSystem());
      
      //Windows is POSIX now too
      LocalFileSystem.deInstallCurrentComponent();
      LocalFileSystem.installComponent(new UnixFileSystem());
      
      // Android
      LocalFileSystem.deInstallCurrentComponent();
      LocalFileSystem.installComponent(new AndroidFileSystem());
      //This was the last line where we cared about the filesystem type (PISIX/Windows)
      //From this moment onwards, the path works in a generic way.
      

    }


    Json.installComponent(new DartJson());
    Strings.installComponent(new RedStrings()); // some utils for strings
    Sys.installComponent(new RedAndroidSystem()); //...
    SystemSettings.installComponent(new RedSystemSettings()); //...
    SystemSettings.setExecutionMode(ExecutionMode.EARLY_DEVELOPMENT); // activate debugging flags
    SystemSettings.setExecutionMode(ExecutionMode.PUBLIC_RELEASE); // deactivate production mode

    MD5.installComponent(new RedMD5());

1. Depend on it

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

dependencies:
  scarabei_reyer: "^2.1.0"

2. Install it

You can install packages from the command line:

$ 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:scarabei_reyer/scarabei_reyer.dart';

Platforms

About

Collection of open source reusable Dart components

Author

Email dart@jfixby.com J Fixby

Homepage

github.com/ScarabeiDart/

Documentation

www.dartdocs.org/documentation/scarabei_reyer/2.1.0/

Source code (hyperlinked)

www.crossdart.info/p/scarabei_reyer/2.1.0/

Uploader

contact@jfixby.com

Published

Sep 22, 2017

Share