Skip to content

Commit 0765b3d

Browse files
authored
Merge pull request #178 from liutikas/cleanup
Clean up the logic to disable of android device tests
2 parents baa2ee7 + bc1adf8 commit 0765b3d

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

core/network/build.gradle.kts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252

5353
// Explicitly disable the connectedAndroidTest task for this module
5454
androidComponents {
55-
beforeVariants(selector().all()) { variant ->
55+
beforeVariants { variant ->
5656
variant.enableAndroidTest = false
5757
}
5858
}
@@ -91,9 +91,4 @@ dependencies {
9191
testImplementation(libs.kotlinx.coroutines.test)
9292
testImplementation(libs.robolectric)
9393
testImplementation(libs.androidx.core)
94-
95-
androidTestImplementation(libs.androidx.ui.test.junit4)
96-
androidTestImplementation(libs.hilt.android.testing)
97-
androidTestImplementation(projects.core.testing)
98-
kspAndroidTest(libs.hilt.compiler)
9994
}

core/testing/build.gradle.kts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141

4242
// Explicitly disable the connectedAndroidTest task for this module
4343
androidComponents {
44-
beforeVariants(selector().all()) { variant ->
44+
beforeVariants { variant ->
4545
variant.enableAndroidTest = false
4646
}
4747
}
@@ -61,11 +61,5 @@ dependencies {
6161
implementation(projects.feature.results)
6262
implementation(projects.watchface)
6363
implementation(projects.wear.common)
64-
6564
ksp(libs.hilt.compiler)
66-
67-
androidTestImplementation(platform(libs.androidx.compose.bom))
68-
androidTestImplementation(libs.androidx.ui.test.junit4)
69-
androidTestImplementation(libs.hilt.android.testing)
70-
kspAndroidTest(libs.hilt.compiler)
7165
}

core/util/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
}
4040
// Explicitly disable the connectedAndroidTest task for this module
4141
androidComponents {
42-
beforeVariants(selector().all()) { variant ->
42+
beforeVariants { variant ->
4343
variant.enableAndroidTest = false
4444
}
4545
}

data/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ android {
3838
}
3939
// Explicitly disable the connectedAndroidTest task for this module
4040
androidComponents {
41-
beforeVariants(selector().all()) { variant ->
41+
beforeVariants { variant ->
4242
variant.enableAndroidTest = false
4343
}
4444
}

0 commit comments

Comments
 (0)