Skip to content

Commit

Permalink
Migrate testing deps to new testing block
Browse files Browse the repository at this point in the history
  • Loading branch information
tresat committed May 14, 2024
1 parent af3d7a8 commit 562a6eb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
12 changes: 7 additions & 5 deletions core/common/build.gradle.dcl
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
androidLibrary {
namespace = "com.google.samples.apps.nowinandroid.core.common"

dependencies {
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation("app.cash.turbine:turbine:1.0.0")
}

buildTypes {
buildTypes {
// Need the empty closure to avoid "dangling pure expression" error
debug {}
release {}
}
}

testing {
dependencies {
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation("app.cash.turbine:turbine:1.0.0")
}
}
}
12 changes: 7 additions & 5 deletions core/data/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ androidLibrary {

implementation(project(":core:analytics"))
implementation(project(":core:notifications"))

testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation(project(":core:datastore-test"))
testImplementation(project(":core:testing"))
testImplementation(project(":core:network"))
}

kotlinSerialization {
Expand All @@ -28,6 +23,13 @@ androidLibrary {
}

testing {
dependencies {
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation(project(":core:datastore-test"))
testImplementation(project(":core:testing"))
testImplementation(project(":core:network"))
}

jacoco {
version = "0.8.7"
}
Expand Down
6 changes: 4 additions & 2 deletions core/domain/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ androidLibrary {

api(project(":core:data"))
api(project(":core:model"))

testImplementation(project(":core:testing"))
}

buildTypes {
Expand All @@ -17,6 +15,10 @@ androidLibrary {
}

testing {
dependencies {
testImplementation(project(":core:testing"))
}

jacoco {
version = "0.8.7"
}
Expand Down
9 changes: 7 additions & 2 deletions feature/bookmarks/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ androidLibrary {

dependencies {
implementation(project(":core:data"))
testImplementation(project(":core:testing"))
androidTestImplementation(project(":core:testing"))
}

feature {
Expand All @@ -14,4 +12,11 @@ androidLibrary {
compose {
description = "Calling the configure method enables compose support"
}

testing {
dependencies {
testImplementation(project(":core:testing"))
androidTestImplementation(project(":core:testing"))
}
}
}

0 comments on commit 562a6eb

Please sign in to comment.