Skip to content

Commit

Permalink
add kmp compatible test libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
dalafiarisamuel committed Jul 4, 2024
1 parent d8ba5a3 commit 28b045d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ kotlin {
implementation(libs.nappier.logging)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.material3.window.size.multiplatform)

//test implementations
implementation(libs.koin.test)
implementation(libs.combine)
implementation(libs.kotlin.test)
implementation(libs.kotlin.coroutine.test)
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ koinComposeMultiplatform = "1.2.0-Beta4"
kotlin-navigation-compose = "2.7.0-alpha07"
material3WindowSizeClassMultiplatform = "0.5.0"
nappier-logging = "2.7.1"
combineVersion = "0.13.0"


[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
kotlin-coroutine-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutinesCore" }
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidx-core-ktx" }
androidx-test-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-junit" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "androidx-espresso-core" }
Expand All @@ -58,7 +60,7 @@ androidx-lifecycle-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmode
kotlin-navigation-compose = { module = "org.jetbrains.androidx.navigation:navigation-compose", version.ref = "kotlin-navigation-compose" }
material3-window-size-multiplatform = { module = "dev.chrisbanes.material3:material3-window-size-class-multiplatform", version.ref = "material3WindowSizeClassMultiplatform" }
nappier-logging = { module = "io.github.aakira:napier", version.ref = "nappier-logging" }

combine = { module = "app.cash.turbine:turbine", version.ref = "combineVersion" }
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
koin-androidx-compose = { module = "io.insert-koin:koin-androidx-compose", version.ref = "koinCompose" }
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
Expand Down

0 comments on commit 28b045d

Please sign in to comment.