control icon indicating copy to clipboard operation
control copied to clipboard

🎮 coroutines flow based uni-directional architecture

flow

version license

last commit code quality coverage build

installation

repositories {
    mavenCentral()
}

dependencies {
    implementation("at.florianschuster.control:control-core:$version")
}

see changelog for versions

controller

flow

A Controller is an ui-independent class that controls the state of a view. The role of a Controller is to separate business-logic from view-logic. A Controller has no dependency to the view, so it can easily be unit tested.

info & documentation

  1. controller
  2. view
  3. transformations
  4. effects
  5. controller testing
  6. view testing
  7. logging

examples

  • kotlin-counter: most basic kotlin example. uses Controller.
  • android-counter: most basic android example. uses Controller from kotlin-counter.
  • android-github: android github repository search. uses Controller combined with Android Jetpack AAC ViewModel.
  • android-compose: android counter example built with jetpack compose.

author

visit my website.