What is Koin?

A small Kotlin library for writing dependency injection in a concise and pragmatic way.

No proxy, no code generation, no introspection. Just DSL and functional Kotlin magic!

Declare, Start, Inject

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