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

Latest commit

 

History

History
28 lines (23 loc) · 513 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 513 Bytes

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