Utilities

Overview

Slate Kit Utilities supplement the existing Kotlin standard library by offering a powerful set of general purpose Kotlin components that can be used for any application. Many of these components are located in the slatekit-common project. However, there are a few components located in other projects. Refer to each utility component for more info.

Setup

You can setup the slatekit.common project with the configuration below.

    // other setup ...
    repositories {
        maven { url  "https://dl.bintray.com/codehelixinc/slatekit" }
    }

    dependencies {
        // slatekit-common: Utilities for Android or Server
        compile 'com.slatekit:slatekit-common:2.0.0'
    }



Module

Links to this modules info. Click on any component icon below for example on how to use it.

Jar slatekit.common.jar
Package slatekit.common
Sources
Example All Examples
Version
License
Requires See build.gradle for more info.

Several Utilities

Many pre-built utilities to support your Server application or Android client.

Args

A lexical command line arguments parser

Auth

Easily access authentication information

Config

Java props with types, lists, encryption, and more

Console

Console writer with semantics and colors

DateTime

Easier Java 8 DateTime and Timezone usage

Encrypt

AES encryption and decryption support and utilities

Env

Environment selector ( dev, qa, stg, prod )

Folders

Standardized runtime app folders and structure.

Info

Useful information about app, host, runtime

Lex

A light-weight lexer to parse text into tokens

Logs

Simple, extensible, customizable logger

Model

Builts schemas to map models and generate code

Random

Random generator for strings, numbers, alpha, guids

Request

Abstracts and represents HTTP and CLI requests

Smart Strings

Store, validate, describe strongly formatted strings

Templates

A micro templating system for emails, sms and short messages

Notes

Typesafe, programmatic approach to marking Notes/Todos in code

Utils

Several other smaller utilities and components

Validations

Functional validation, RegEx patterns, and helpers

Extensions

Extension methods for various Kotlin types and classes