mirror of
https://github.com/mihonapp/injekt.git
synced 2025-01-24 23:23:35 +00:00
[MIRROR] Dependency Injection for Kotlin (thread safety patch)
.github/workflows | ||
gradle | ||
library | ||
.editorconfig | ||
.gitignore | ||
build.gradle.kts | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
jitpack.yml | ||
LICENSE | ||
README.md | ||
settings.gradle.kts |
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
}
}