[MIRROR] Dependency Injection for Kotlin (thread safety patch)
Go to file
2024-09-08 19:50:03 +06:00
.github/workflows Initial commit 2024-09-08 19:50:03 +06:00
gradle Initial commit 2024-09-08 19:50:03 +06:00
library Initial commit 2024-09-08 19:50:03 +06:00
.editorconfig Initial commit 2024-09-08 19:50:03 +06:00
.gitignore Initial commit 2024-09-08 19:50:03 +06:00
build.gradle.kts Initial commit 2024-09-08 19:50:03 +06:00
gradle.properties Initial commit 2024-09-08 19:50:03 +06:00
gradlew Initial commit 2024-09-08 19:50:03 +06:00
gradlew.bat Initial commit 2024-09-08 19:50:03 +06:00
jitpack.yml Initial commit 2024-09-08 19:50:03 +06:00
LICENSE Initial commit 2024-09-08 19:50:03 +06:00
README.md Initial commit 2024-09-08 19:50:03 +06:00
settings.gradle.kts Initial commit 2024-09-08 19:50:03 +06:00

Patch for https://github.com/kohesive/injekt to make singleton factory thread safe

Usage

Add jitpack.io repository to your root build.gradle.kts file:

dependencyResolutionManagement {
    repositories {
        ...
        maven(url = "https://www.jitpack.io")
    }
}

Add library to dependencies

dependencies {
    implementation("com.github.mihonapp:injekt:1.0.0")
}

Call patchInjekt() at the start of your application. For example:

class App : Application() {

    override fun onCreate() {
        patchInjekt()
        // Rest of the code below
    }
}