forked from Splitties/refreshVersions
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitties#238 [Summary] Koin is a common DI / Service Locator framework for KMP, and we'd like to migrate to refreshVersions completely. https://insert-koin.io/docs/setup/v3 How we're using it for safe multithreading on native in KaMP Kit: https://github.com/touchlab/KaMPKit/blob/main/shared/src/commonMain/kotlin/co/touchlab/kampkit/Koin.kt [Fix] Add the Koin dependencies. [Testing] - `./gradlew :refreshVersions:check` - inspections that the coordinates are generated in dependencies-mapping-validated.txt and bundled-dependencies-validated.txt.
- Loading branch information
1 parent
7418b47
commit a4a582f
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection", "unused") | ||
|
||
import org.gradle.api.Incubating | ||
import org.gradle.kotlin.dsl.IsNotADependency | ||
|
||
@Incubating | ||
object Koin { | ||
val core = Core | ||
val junit = JUnit | ||
val android = Android | ||
val ktor = Ktor | ||
|
||
private const val artifactPrefix = "io.insert-koin:koin" | ||
|
||
object Core : IsNotADependency { | ||
const val core = "$artifactPrefix-core:_" | ||
const val test = "$artifactPrefix-test:_" | ||
} | ||
|
||
object JUnit : IsNotADependency { | ||
const val junit4 = "$artifactPrefix-test-junit4:_" | ||
const val junit5 = "$artifactPrefix-test-junit5:_" | ||
} | ||
|
||
object Android : IsNotADependency { | ||
const val android = "$artifactPrefix-android:_" | ||
const val androidCompat = "$artifactPrefix-android-compat:_" | ||
const val workManager = "$artifactPrefix-androidx-workmanager:_" | ||
const val compose = "$artifactPrefix-androidx-compose:_" | ||
} | ||
|
||
object Ktor : IsNotADependency { | ||
const val ktor = "$artifactPrefix-ktor:_" | ||
const val logger = "$artifactPrefix-logger-slf4j:_" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters