Skip to main content
Version: 3.3

Koin 3.3

Setup Koin for your project

Version

You can find all Koin packages on maven central.

Gradle dependencies

Add the following Gradle dependencies to add Koin to your project:

// Add Maven Central to your repositories if needed
repositories {
mavenCentral()
}

Core

koin_version= "3.2.2"
// Koin Core features
implementation "io.insert-koin:koin-core:$koin_version"
// Koin Test features
testImplementation "io.insert-koin:koin-test:$koin_version"

// Koin for JUnit 4
testImplementation "io.insert-koin:koin-test-junit4:$koin_version"
// Koin for JUnit 5
testImplementation "io.insert-koin:koin-test-junit5:$koin_version"

Android

koin_android_version= "3.3.0"
// Koin main features for Android
implementation "io.insert-koin:koin-android:$koin_android_version"
// Java Compatibility
implementation "io.insert-koin:koin-android-compat:$koin_android_version"
// Jetpack WorkManager
implementation "io.insert-koin:koin-androidx-workmanager:$koin_android_version"
// Navigation Graph
implementation "io.insert-koin:koin-androidx-navigation:$koin_android_version"

Android Jetpack Compose

koin_android_compose_version= "3.3.0"
// Jetpack Compose
implementation "io.insert-koin:koin-androidx-compose:$koin_android_compose_version"

Ktor

koin_ktor= "3.2.2"
// Koin for Ktor 
implementation "io.insert-koin:koin-ktor:$koin_ktor"
// SLF4J Logger
implementation "io.insert-koin:koin-logger-slf4j:$koin_ktor"