mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 05:17:03 +05:30
fix(build): make slimTests skip debug rather than select release
This commit is contained in:
parent
0359860b82
commit
1e4217598f
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,8 @@ class AndroidCommonPlugin : Plugin<Project> {
|
||||||
}
|
}
|
||||||
// Disable unit test tasks on the release build type for Android Library projects
|
// Disable unit test tasks on the release build type for Android Library projects
|
||||||
extensions.findByType<LibraryAndroidComponentsExtension>()?.run {
|
extensions.findByType<LibraryAndroidComponentsExtension>()?.run {
|
||||||
beforeVariants(selector().withBuildType("release")) {
|
beforeVariants(selector().all()) {
|
||||||
|
if (it.name == "debug") return@beforeVariants
|
||||||
(it as HasUnitTestBuilder).enableUnitTest = false
|
(it as HasUnitTestBuilder).enableUnitTest = false
|
||||||
it.enableAndroidTest = false
|
it.enableAndroidTest = false
|
||||||
}
|
}
|
||||||
|
@ -78,7 +79,8 @@ class AndroidCommonPlugin : Plugin<Project> {
|
||||||
|
|
||||||
// Disable unit test tasks on the release build type for Android Application projects.
|
// Disable unit test tasks on the release build type for Android Application projects.
|
||||||
extensions.findByType<ApplicationAndroidComponentsExtension>()?.run {
|
extensions.findByType<ApplicationAndroidComponentsExtension>()?.run {
|
||||||
beforeVariants(selector().withBuildType("release")) {
|
beforeVariants(selector().all()) {
|
||||||
|
if (it.name == "debug") return@beforeVariants
|
||||||
(it as HasUnitTestBuilder).enableUnitTest = false
|
(it as HasUnitTestBuilder).enableUnitTest = false
|
||||||
it.enableAndroidTest = false
|
it.enableAndroidTest = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue