scarabei_reyer 4.0.1

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: "^4.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages 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

J Fixby

Homepage

github.com/ScarabeiDart/

Documentation

www.dartdocs.org/documentation/scarabei_reyer/4.0.1/

Uploader

contact@jfixby.com

License

Apache 2.0 (LICENSE)

Published

Nov 2, 2017