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:1.0.0'
    }



Module

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

package slatekit.common
jar slatekit.common.jar
git slatekit-common
docs Common
uses slatekit-results
license Apache 2.0
example All Examples

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

Reflection

Reflection utils for classes, methods, annotations

Request

Abstracts and represents HTTP and CLI requests

Serialization

Csv, Json, HoCon serialization of data classes

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