From 2d0261ddd136a32d8dc17cebb58deeb2e0f4e6b7 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 24 Aug 2017 14:08:41 -0700 Subject: [PATCH] Android file cleanup --- android/rctmgl/build.gradle | 10 +------ .../rctmgl/ExampleInstrumentedTest.java | 26 ------------------- .../java/mapbox/rctmgl/ExampleUnitTest.java | 17 ------------ 3 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 android/rctmgl/src/androidTest/java/mapbox/rctmgl/ExampleInstrumentedTest.java delete mode 100644 android/rctmgl/src/test/java/mapbox/rctmgl/ExampleUnitTest.java diff --git a/android/rctmgl/build.gradle b/android/rctmgl/build.gradle index 2c5ab5d..ed99ac5 100644 --- a/android/rctmgl/build.gradle +++ b/android/rctmgl/build.gradle @@ -9,10 +9,8 @@ android { targetSdkVersion 25 versionCode 1 versionName "1.0" - - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - } + buildTypes { release { minifyEnabled false @@ -30,10 +28,4 @@ dependencies { compile('com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.3@aar') { transitive=true } - - // test deps - androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { - exclude group: 'com.android.support', module: 'support-annotations' - }) - testCompile 'junit:junit:4.12' } diff --git a/android/rctmgl/src/androidTest/java/mapbox/rctmgl/ExampleInstrumentedTest.java b/android/rctmgl/src/androidTest/java/mapbox/rctmgl/ExampleInstrumentedTest.java deleted file mode 100644 index d65437a..0000000 --- a/android/rctmgl/src/androidTest/java/mapbox/rctmgl/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package mapbox.rctmgl; - -import android.content.Context; -import android.support.test.InstrumentationRegistry; -import android.support.test.runner.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumentation test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() throws Exception { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("mapbox.rctmgl.test", appContext.getPackageName()); - } -} diff --git a/android/rctmgl/src/test/java/mapbox/rctmgl/ExampleUnitTest.java b/android/rctmgl/src/test/java/mapbox/rctmgl/ExampleUnitTest.java deleted file mode 100644 index 59a88de..0000000 --- a/android/rctmgl/src/test/java/mapbox/rctmgl/ExampleUnitTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package mapbox.rctmgl; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Example local unit test, which will execute on the development machine (host). - * - * @see Testing documentation - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() throws Exception { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file