From 7249bf14292031b3d55ef0cd622e58d12a530958 Mon Sep 17 00:00:00 2001 From: VipinKT Date: Mon, 18 May 2020 11:35:17 +0530 Subject: [PATCH] unused dependencies removed --- library/build.gradle | 4 -- .../roominspector/ExampleInstrumentedTest.kt | 38 ------------------- .../ktvipin/roominspector/ExampleUnitTest.kt | 32 ---------------- 3 files changed, 74 deletions(-) delete mode 100644 library/src/androidTest/java/com/ktvipin/roominspector/ExampleInstrumentedTest.kt delete mode 100644 library/src/test/java/com/ktvipin/roominspector/ExampleUnitTest.kt diff --git a/library/build.gradle b/library/build.gradle index de0d1cf..970e60f 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -52,7 +52,6 @@ android { versionCode 2 versionName "1.0.1" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' } @@ -71,8 +70,5 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.2.0' implementation 'androidx.room:room-runtime:2.2.5' - testImplementation 'junit:junit:4.13' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } apply from: 'publish.gradle' diff --git a/library/src/androidTest/java/com/ktvipin/roominspector/ExampleInstrumentedTest.kt b/library/src/androidTest/java/com/ktvipin/roominspector/ExampleInstrumentedTest.kt deleted file mode 100644 index 43e232f..0000000 --- a/library/src/androidTest/java/com/ktvipin/roominspector/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Vipin KT - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.ktvipin.roominspector - -import androidx.test.ext.junit.runners.AndroidJUnit4 -import androidx.test.platform.app.InstrumentationRegistry -import org.junit.Assert.assertEquals -import org.junit.Test -import org.junit.runner.RunWith - -/** - * 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.ktvipin27.roominspector.test", appContext.packageName) - } -} diff --git a/library/src/test/java/com/ktvipin/roominspector/ExampleUnitTest.kt b/library/src/test/java/com/ktvipin/roominspector/ExampleUnitTest.kt deleted file mode 100644 index b053067..0000000 --- a/library/src/test/java/com/ktvipin/roominspector/ExampleUnitTest.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2020 Vipin KT - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.ktvipin.roominspector - -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Example local unit test, which will execute on the development machine (host). - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -class ExampleUnitTest { - @Test - fun addition_isCorrect() { - assertEquals(4, 2 + 2) - } -}