Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (26 loc) · 620 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 620 Bytes

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
    }
}