From 5ff7f98a4de1d3701b2e57a4ef8099adb5b516a3 Mon Sep 17 00:00:00 2001 From: Vitaly Zub Date: Tue, 17 May 2022 13:25:07 +0300 Subject: [PATCH 1/2] add basic test --- .../java/org/booleanull/pushalerts/MainActivityTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/booleanull/pushalerts/MainActivityTest.kt b/app/src/androidTest/java/org/booleanull/pushalerts/MainActivityTest.kt index 9784c71..40360de 100644 --- a/app/src/androidTest/java/org/booleanull/pushalerts/MainActivityTest.kt +++ b/app/src/androidTest/java/org/booleanull/pushalerts/MainActivityTest.kt @@ -37,7 +37,7 @@ import org.hamcrest.Matchers.`is` @RunWith(AndroidJUnit4::class) class MainActivityTest { - object AndroidTestMockFactory { + object AndroidTestFactory { const val FILTER = "filter" } @@ -53,7 +53,7 @@ class MainActivityTest { val nextFragment = onView(withId(R.id.fragment_container_view_tag)) // Секция взаимодействия с компонентами - editText.perform(typeText(AndroidTestMockFactory.FILTER)) + editText.perform(typeText(AndroidTestFactory.FILTER)) button.perform(click()) // Секция проверки From f8e68b486a879cfff7a26f5d614b8d20bf2e191c Mon Sep 17 00:00:00 2001 From: Vitaly Zub Date: Tue, 17 May 2022 13:30:07 +0300 Subject: [PATCH 2/2] up minSdkVersion --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 488dbda..0ec9f5f 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ allprojects { ext { compileSdkVersion = 29 targetSdkVersion = 29 - minSdkVersion = 21 + minSdkVersion = 24 buildToolsVersion = "30.0.2" versionCode = 5 versionName = "1.2"