What is Koin?


A pragmatic lightweight dependency injection framework for Kotlin developers. Written in pure Kotlin using functional resolution only: no proxy, no code generation, no reflection!


Koin is a DSL, a light container and a pragmatic API.


repositories {
  jcenter()    
}
dependencies {
    // Koin for Kotlin
    compile 'org.koin:koin-core:1.0.0-beta-3'
}
repositories {
  jcenter()    
}
dependencies {
    // Koin for Android
    compile 'org.koin:koin-android:1.0.0-beta-3'
    // or Koin for Lifecycle scoping
    compile 'org.koin:koin-android-scope:1.0.0-beta-3'
    // or Koin for Android Architecture ViewModel
    compile 'org.koin:koin-android-viewmodel:1.0.0-beta-3'
}
repositories {
  jcenter()    
}
dependencies {
    // Koin for Android
    compile 'org.koin:koin-android:1.0.0-beta-3'
    // or Koin for Lifecycle scoping
    compile 'org.koin:koin-androidx-scope:1.0.0-beta-3'
    // or Koin for Android Architecture ViewModel
    compile 'org.koin:koin-androidx-viewmodel:1.0.0-beta-3'
}
repositories {
  jcenter()    
}
dependencies {
    // Koin for SparkKotlin
    compile 'org.koin:koin-spark:1.0.0-beta-3'
}
repositories {
  jcenter()    
}
dependencies {
    // Koin for Ktor
    compile 'org.koin:koin-ktor:1.0.0-beta-3'
}