<commit_before>---
title: Kotlin Multiplatform Dependency Injection
---

## Source Project

:::info
 You can find the Kotlin Multiplatform project here: https://github.com/InsertKoinIO/hello-kmp
:::

## Gradle Dependencies

Koin is a pure Kotlin library and can be used in your shared Kotlin project. Just add the core dependency:

Add `koin-core` in common project, declare your dependency: https://github.com/InsertKoinIO/hello-kmp/tree/main/buildSrc


```kotlin
// Dependencies.kt

object Versions {<commit_msg>Update KMM documentation<commit_after>---
title: Kotlin Multiplatform Dependency Injection
---

## Source Project

:::info
 You can find the Kotlin Multiplatform project here: https://github.com/InsertKoinIO/hello-kmp
:::

## Gradle Dependencies

Koin is a pure Kotlin library and can be used in your shared Kotlin project. Just add the core dependency:

Add `koin-core` in common project, declare your dependency: [https://github.com/InsertKoinIO/hello-kmp/tree/main/buildSrc](https://github.com/InsertKoinIO/hello-kmp/blob/main/buildSrc/src/main/java/Dependencies.kt)


```kotlin
// Dependencies.kt

object Versions {
{'fraction_non_alphanumeric': 0.10856134157105031, 'fraction_numerical': 0.0, 'mean_word_length': 4.586206896551724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6174777', 'n_tokens_mistral': 356, 'n_tokens_neox': 346, 'n_words': 108}