From a7a784df8ac128edfba59c90b3047b5e18969cbd Mon Sep 17 00:00:00 2001 From: Alexey Illarionov Date: Wed, 10 May 2023 12:15:38 +0300 Subject: [PATCH] Rollback kotlin-coroutines-test to 1.6.4 in instrumented tests until https://github.com/Kotlin/kotlinx.coroutines/issues/3673 is fixed --- .../gradle/android/AndroidInstrumentedTests.kt | 15 +++++++++++++++ gradle/verification-metadata.xml | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/gradle/plugin/project/android/src/main/kotlin/ru/pixnews/gradle/android/AndroidInstrumentedTests.kt b/gradle/plugin/project/android/src/main/kotlin/ru/pixnews/gradle/android/AndroidInstrumentedTests.kt index bc1cfb8d..1fdd5626 100644 --- a/gradle/plugin/project/android/src/main/kotlin/ru/pixnews/gradle/android/AndroidInstrumentedTests.kt +++ b/gradle/plugin/project/android/src/main/kotlin/ru/pixnews/gradle/android/AndroidInstrumentedTests.kt @@ -92,6 +92,21 @@ private fun Project.configureAndroidTestDependencies( } add("androidTestRuntimeOnly", versionCatalog.findLibrary("androidx-test-runner").orElseThrow()) add("androidTestImplementation", project(":foundation:instrumented-test")) + + constraints { + listOf( + "org.jetbrains.kotlinx:kotlinx-coroutines-test", + "org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm", + ).forEach { testDependency -> + add("androidTestImplementation", testDependency) { + version { + strictly("1.6.4") + reject("1.7.0") + because("https://github.com/Kotlin/kotlinx.coroutines/issues/3673") + } + } + } + } } plugins.withId("ru.pixnews.gradle.di.anvil-kapt") { diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 11d8cc7a..b50ad25f 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -3359,6 +3359,11 @@ + + + + + @@ -3389,6 +3394,11 @@ + + + + +