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.

// Add Jcenter to your repositories if needed
repositories {
    jcenter()    
}
dependencies {
    // Koin for Kotlin
    compile 'org.koin:koin-core:0.9.3'
}
// Add Jcenter to your repositories if needed
repositories {
    jcenter()
}
dependencies {
    // Koin for Android
    compile 'org.koin:koin-android:0.9.3'
    // or Koin for Android Architecture (if needed)
    compile 'org.koin:koin-android-architecture:0.9.3'
}
// Add Jcenter to your repositories if needed
repositories {
    jcenter()
}
dependencies {
    // Koin for SparkKotlin
    compile 'org.koin:koin-spark:0.9.3'
}
// Add Jcenter to your repositories if needed
repositories {
    jcenter()
}
dependencies {
    // Koin for Ktor
    compile 'org.koin:koin-ktor:0.9.3'
}