summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-11-25 18:48:05 +0100
committerTobrun <tobrun.van.nuland@gmail.com>2019-12-03 17:10:31 +0100
commit29bbfcccdecde7d3570dff418d10e460043ed409 (patch)
treefac2e23574b16d7245709af2024f0d2e72265aa1 /platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt
parent41324842b294d9d38eb42f1b8726e270510614e0 (diff)
downloadqtlocation-mapboxgl-29bbfcccdecde7d3570dff418d10e460043ed409.tar.gz
[android] remove platform specific Android code, migrate project to mapbox-gl-native-android
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt38
1 files changed, 0 insertions, 38 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt
deleted file mode 100644
index 3cb9e51bf7..0000000000
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/LocationComponentAction.kt
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.mapbox.mapboxsdk.location.utils
-
-import android.content.Context
-import android.support.test.espresso.UiController
-import android.support.test.espresso.ViewAction
-import android.support.test.espresso.matcher.ViewMatchers.isDisplayed
-import android.view.View
-import com.mapbox.mapboxsdk.location.LocationComponent
-import com.mapbox.mapboxsdk.maps.MapboxMap
-import com.mapbox.mapboxsdk.maps.Style
-import org.hamcrest.Matcher
-
-class LocationComponentAction(
- private val mapboxMap: MapboxMap,
- private val onPerformLocationComponentAction: OnPerformLocationComponentAction
-) : ViewAction {
-
- override fun getConstraints(): Matcher<View> {
- return isDisplayed()
- }
-
- override fun getDescription(): String {
- return javaClass.simpleName
- }
-
- override fun perform(uiController: UiController, view: View) {
- onPerformLocationComponentAction.onLocationComponentAction(
- mapboxMap.locationComponent,
- mapboxMap,
- mapboxMap.style!!,
- uiController,
- view.context)
- }
-
- interface OnPerformLocationComponentAction {
- fun onLocationComponentAction(component: LocationComponent, mapboxMap: MapboxMap, style: Style, uiController: UiController, context: Context)
- }
-} \ No newline at end of file