From d827160aa6ec8a40ae7ae42251b11ae02d8c538e Mon Sep 17 00:00:00 2001 From: Leonardo Colman Lopes Date: Thu, 28 Sep 2023 17:31:48 -0300 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20Kotest=20version?= =?UTF-8?q?=20to=205.7.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 +- kotest-assertions-android/build.gradle.kts | 2 +- kotest-runner-android/build.gradle.kts | 4 ++-- .../kotest-runner-android-tests/build.gradle.kts | 5 +++++ .../com/colman/kotest/ExampleInstrumentedAndroidTestPass.kt | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index eb7d19a..34a31d5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,5 @@ plugins { kotlin("jvm") version "1.8.20" apply false kotlin("android") version "1.8.20" apply false - id("com.android.application") version "7.3.1" apply false + id("com.android.application") version "7.4.2" apply false } diff --git a/kotest-assertions-android/build.gradle.kts b/kotest-assertions-android/build.gradle.kts index 94c8ffe..11803f5 100644 --- a/kotest-assertions-android/build.gradle.kts +++ b/kotest-assertions-android/build.gradle.kts @@ -41,7 +41,7 @@ configurations { dependencies { implementation("androidx.core:core-ktx:1.10.0") - implementation("io.kotest:kotest-assertions-core:5.5.5") + implementation("io.kotest:kotest-assertions-core:5.7.2") androidTestImplementation(project(":kotest-runner-android")) androidTestImplementation("androidx.test:runner:1.5.2") diff --git a/kotest-runner-android/build.gradle.kts b/kotest-runner-android/build.gradle.kts index 74cede7..a5a67b0 100644 --- a/kotest-runner-android/build.gradle.kts +++ b/kotest-runner-android/build.gradle.kts @@ -7,8 +7,8 @@ plugins { dependencies { api("junit:junit:4.13.2") - api("io.kotest:kotest-framework-engine:5.5.5") - api("io.kotest:kotest-framework-discovery:5.5.5") + api("io.kotest:kotest-framework-engine:5.7.2") + api("io.kotest:kotest-framework-discovery:5.7.2") } val sourcesJar by tasks.registering(Jar::class) { diff --git a/kotest-runner-android/kotest-runner-android-tests/build.gradle.kts b/kotest-runner-android/kotest-runner-android-tests/build.gradle.kts index f66a414..b408aa2 100644 --- a/kotest-runner-android/kotest-runner-android-tests/build.gradle.kts +++ b/kotest-runner-android/kotest-runner-android-tests/build.gradle.kts @@ -22,6 +22,11 @@ android { exclude("win32-x86/**") exclude("win32-x86-64/**") } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } } diff --git a/kotest-runner-android/kotest-runner-android-tests/src/androidTest/kotlin/br/com/colman/kotest/ExampleInstrumentedAndroidTestPass.kt b/kotest-runner-android/kotest-runner-android-tests/src/androidTest/kotlin/br/com/colman/kotest/ExampleInstrumentedAndroidTestPass.kt index 36b5adb..9a62d29 100644 --- a/kotest-runner-android/kotest-runner-android-tests/src/androidTest/kotlin/br/com/colman/kotest/ExampleInstrumentedAndroidTestPass.kt +++ b/kotest-runner-android/kotest-runner-android-tests/src/androidTest/kotlin/br/com/colman/kotest/ExampleInstrumentedAndroidTestPass.kt @@ -6,7 +6,7 @@ import androidx.test.platform.app.InstrumentationRegistry import io.kotest.matchers.shouldBe import org.junit.runner.RunWith -//@RunWith(KotestRunnerAndroid::class) +@RunWith(KotestRunnerAndroid::class) class ExampleInstrumentedAndroidTestPass : FunSpec({ test("Use app context") {