From 63ce04f08c65ef5c714c46a937490e8dcb4ce25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=B2=E9=98=B3?= Date: Thu, 18 Apr 2024 19:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../puy/appupdate/ExampleInstrumentedTest.kt | 24 ------------------- updateapp/build.gradle | 1 - 2 files changed, 25 deletions(-) delete mode 100644 app/src/androidTest/java/com/puy/appupdate/ExampleInstrumentedTest.kt diff --git a/app/src/androidTest/java/com/puy/appupdate/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/puy/appupdate/ExampleInstrumentedTest.kt deleted file mode 100644 index 5e44341..0000000 --- a/app/src/androidTest/java/com/puy/appupdate/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package com.puy.appupdate - -import androidx.test.platform.app.InstrumentationRegistry -import androidx.test.ext.junit.runners.AndroidJUnit4 - -import org.junit.Test -import org.junit.runner.RunWith - -import org.junit.Assert.* - -/** - * Instrumented test, which will execute on an Android device. - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -@RunWith(AndroidJUnit4::class) -class ExampleInstrumentedTest { - @Test - fun useAppContext() { - // Context of the app under test. - val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("com.puy.appupdate", appContext.packageName) - } -} diff --git a/updateapp/build.gradle b/updateapp/build.gradle index 18245e9..329d8b5 100644 --- a/updateapp/build.gradle +++ b/updateapp/build.gradle @@ -11,7 +11,6 @@ android { versionCode 1 versionName "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' }