Reviewed changes done

This commit is contained in:
MohitMali 2022-05-05 13:02:25 +05:30
parent 871cefad3f
commit 9a7e16e734
5 changed files with 5 additions and 8 deletions

View File

@ -17,7 +17,7 @@
*/
package org.kiwix.kiwixmobile.help
import androidx.test.internal.runner.junit4.statement.UiThreadStatement
import androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread
import org.junit.Test
import org.kiwix.kiwixmobile.BaseActivityTest
import org.kiwix.kiwixmobile.R
@ -26,7 +26,7 @@ class HelpFragmentTest : BaseActivityTest() {
@Test
fun verifyHelpActivity() {
UiThreadStatement.runOnUiThread { activityRule.activity.navigate(R.id.helpFragment) }
runOnUiThread { activityRule.activity.navigate(R.id.helpFragment) }
help {
clickOnWhatDoesKiwixDo()
assertWhatDoesKiwixDoIsExpanded()

View File

@ -17,7 +17,7 @@
*/
package org.kiwix.kiwixmobile.intro
import androidx.test.internal.runner.junit4.statement.UiThreadStatement
import androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread
import org.junit.Test
import org.kiwix.kiwixmobile.BaseActivityTest
import org.kiwix.kiwixmobile.R
@ -26,7 +26,7 @@ class IntroFragmentTest : BaseActivityTest() {
@Test
fun viewIsSwipeableAndNavigatesToMain() {
UiThreadStatement.runOnUiThread { activityRule.activity.navigate(R.id.introFragment) }
runOnUiThread { activityRule.activity.navigate(R.id.introFragment) }
intro(IntroRobot::swipeLeft) clickGetStarted { }
}
}

View File

@ -23,7 +23,6 @@
android:extractNativeLibs="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:usesCleartextTraffic="true"
android:supportsRtl="true"
tools:targetApi="m">

View File

@ -11,8 +11,7 @@
<!-- Device with versions >= Pie need this permission -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<application
android:allowBackup="true"

View File

@ -9,7 +9,6 @@
android:extractNativeLibs="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:usesCleartextTraffic="true"
android:supportsRtl="true"
tools:targetApi="m">