From c7f8faa4f73391c5f6520b983254049559559a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?He=CC=81ctor=20Abraham?= Date: Wed, 11 Dec 2024 18:33:49 +0100 Subject: [PATCH] Remove unnecessary Permission grant --- .../au/com/shiftyjelly/pocketcasts/ui/MainActivityTest.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/androidTest/java/au/com/shiftyjelly/pocketcasts/ui/MainActivityTest.kt b/app/src/androidTest/java/au/com/shiftyjelly/pocketcasts/ui/MainActivityTest.kt index 583f5fb5e55..5fd737226bd 100644 --- a/app/src/androidTest/java/au/com/shiftyjelly/pocketcasts/ui/MainActivityTest.kt +++ b/app/src/androidTest/java/au/com/shiftyjelly/pocketcasts/ui/MainActivityTest.kt @@ -1,6 +1,5 @@ package au.com.shiftyjelly.pocketcasts.ui -import android.Manifest import android.os.SystemClock import android.view.InputDevice import android.view.MotionEvent @@ -29,7 +28,6 @@ import androidx.test.ext.junit.rules.ActivityScenarioRule import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.filters.LargeTest import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation -import androidx.test.rule.GrantPermissionRule import androidx.test.uiautomator.UiDevice import au.com.shiftyjelly.pocketcasts.ui.theme.Theme import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn @@ -57,9 +55,8 @@ class MainActivityTest { @get:Rule var activityRule: ActivityScenarioRule = ActivityScenarioRule(MainActivity::class.java) - @get:Rule val composeTestRule = createAndroidComposeRule() - - @get:Rule var permissionRule = GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE) + @get:Rule + val composeTestRule = createAndroidComposeRule() lateinit var device: UiDevice