Setup Koin

Pick your Koin dependency!

JCenter Repository

// Add Jcenter to your repositories if needed
repositories {
	jcenter()    
}

Koin Core Features

// Koin for Kotlin
compile "org.koin:koin-core:2.0.0-GA4"
// Koin Extended & experimental features
compile "org.koin:koin-core-ext:2.0.0-GA4"
// Koin for Java developers
compile "org.koin:koin-java:2.0.0-GA4"
// Koin for Unit tests
testCompile "org.koin:koin-test:2.0.0-GA4"

Koin for Android

// Koin for Android
compile "org.koin:koin-android:2.0.0-GA4"
// Koin Android Scope feature
compile "org.koin:koin-android-scope:2.0.0-GA4"
// Koin Android ViewModel feature
compile "org.koin:koin-android-viewmodel:2.0.0-GA4"

Koin for AndroidX

// AndroidX (based on koin-android)
// Koin AndroidX Scope feature
compile "org.koin:koin-androidx-scope:2.0.0-GA4"
// Koin AndroidX ViewModel feature
compile "org.koin:koin-androidx-viewmodel:2.0.0-GA4"

Koin for Ktor

// Koin for Ktor Kotlin
compile "org.koin:koin-ktor:2.0.0-GA4"