Merge pull request #22 from gradle/tt/migrate-specific-deps-out-of-main-deps

Migrate some Android dependency declarations to new more specific sub blocks
pull/1455/head
Tom Tresansky 1 year ago committed by GitHub
commit e10024e8a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,11 +1,6 @@
androidLibrary { androidLibrary {
namespace = "com.google.samples.apps.nowinandroid.core.common" 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 {
buildTypes { buildTypes {
// Need the empty closure to avoid "dangling pure expression" error // Need the empty closure to avoid "dangling pure expression" error
@ -13,4 +8,11 @@ androidLibrary {
release {} release {}
} }
} }
testing {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation("app.cash.turbine:turbine:1.0.0")
}
}
} }

@ -9,11 +9,6 @@ androidLibrary {
implementation(project(":core:analytics")) implementation(project(":core:analytics"))
implementation(project(":core:notifications")) 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 { kotlinSerialization {
@ -28,6 +23,13 @@ androidLibrary {
} }
testing { testing {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation(project(":core:datastore-test"))
implementation(project(":core:testing"))
implementation(project(":core:network"))
}
jacoco { jacoco {
version = "0.8.7" version = "0.8.7"
} }

@ -6,8 +6,6 @@ androidLibrary {
api(project(":core:data")) api(project(":core:data"))
api(project(":core:model")) api(project(":core:model"))
testImplementation(project(":core:testing"))
} }
buildTypes { buildTypes {
@ -17,6 +15,10 @@ androidLibrary {
} }
testing { testing {
dependencies {
implementation(project(":core:testing"))
}
jacoco { jacoco {
version = "0.8.7" version = "0.8.7"
} }

@ -3,8 +3,6 @@ androidLibrary {
dependencies { dependencies {
implementation(project(":core:data")) implementation(project(":core:data"))
testImplementation(project(":core:testing"))
androidTestImplementation(project(":core:testing"))
} }
feature { feature {
@ -14,4 +12,11 @@ androidLibrary {
compose { compose {
description = "Calling the configure method enables compose support" description = "Calling the configure method enables compose support"
} }
testing {
dependencies {
implementation(project(":core:testing"))
androidImplementation(project(":core:testing"))
}
}
} }

Loading…
Cancel
Save