From 484608daeb32506bc827910ce12014ac4b2f6562 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:54:12 +0000 Subject: [PATCH 1/2] Update androidx.test and friends --- gradle/libs.versions.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5175c4346..827e321a5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -11,8 +11,8 @@ agp = "7.3.1" androidx-appcompat = "1.1.0" androidx-core = "1.3.0" -androidx-test = "1.1.0" -androidx-test-ext = "1.1.1" +androidx-test = "1.5.0" +androidx-test-ext = "1.1.5" autoService = "1.1.1" autoValue = "1.10.1" buildconfig = "4.1.2" @@ -104,4 +104,4 @@ ktlintRaw = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "kt mavenPublishRaw = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "mavenPublish" } -truth = "com.google.truth:truth:1.1.3" +truth = "com.google.truth:truth:1.1.5" From 1dec3e4d211b646161ba72804408a5ce6a3f647b Mon Sep 17 00:00:00 2001 From: Rick Busarow Date: Mon, 30 Oct 2023 21:19:34 -0500 Subject: [PATCH 2/2] replace deprecated `ActivityRule` with `ActivityScenarioRule` --- .../java/com/squareup/anvil/sample/AnvilSampleTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/app/src/androidTest/java/com/squareup/anvil/sample/AnvilSampleTest.kt b/sample/app/src/androidTest/java/com/squareup/anvil/sample/AnvilSampleTest.kt index b7e23c61c..48e8a71a0 100644 --- a/sample/app/src/androidTest/java/com/squareup/anvil/sample/AnvilSampleTest.kt +++ b/sample/app/src/androidTest/java/com/squareup/anvil/sample/AnvilSampleTest.kt @@ -4,8 +4,8 @@ import androidx.test.espresso.Espresso.onView import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.isDisplayed import androidx.test.espresso.matcher.ViewMatchers.withText +import androidx.test.ext.junit.rules.ActivityScenarioRule import androidx.test.ext.junit.runners.AndroidJUnit4 -import androidx.test.rule.ActivityTestRule import com.google.common.truth.Truth.assertThat import com.squareup.scopes.ComponentHolder import org.junit.Rule @@ -16,7 +16,7 @@ import org.junit.runner.RunWith class AnvilSampleTest { @Rule @JvmField - val activityRule = ActivityTestRule(MainActivity::class.java) + val activityRule = ActivityScenarioRule(MainActivity::class.java) @Test fun text_is_displayed() { onView(withText("Hephaestus, son of (No Father) and Hera")).check(matches(isDisplayed()))