Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Latest commit

 

History

History

kotlin-state-tools

Kotlin state tools

interface State<out T : State<T, E>, in E> {
    fun reduce(event: E): T
}

See the phone verification sample.

Installation

// top-level build.gradle
allprojects {
    repositories {
        // ..
        maven { url 'https://jitpack.io' }
    }
}

// module build.gradle
dependencies {
    // ..
    implementation 'com.trafi.states:state:master-SNAPSHOT'
    implementation 'com.trafi.states:state-android:master-SNAPSHOT'
}