diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt index 5d0d30da1a9..c0ddef99146 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt @@ -7,6 +7,7 @@ import com.mapbox.api.directions.v5.DirectionsCriteria import com.mapbox.api.directions.v5.models.DirectionsRoute import com.mapbox.api.directions.v5.models.RouteOptions import com.mapbox.geojson.Point +import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI import com.mapbox.navigation.base.extensions.applyDefaultNavigationOptions import com.mapbox.navigation.base.extensions.applyLanguageAndVoiceUnitOptions import com.mapbox.navigation.base.options.HistoryRecorderOptions @@ -77,6 +78,7 @@ import org.junit.Test import java.net.URI import java.util.concurrent.TimeUnit +@OptIn(ExperimentalPreviewMapboxNavigationAPI::class) class CoreRerouteTest : BaseCoreNoCleanUpTest() { @get:Rule diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteAlternativesTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteAlternativesTest.kt index 0b16734c6da..3520b2ba87d 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteAlternativesTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteAlternativesTest.kt @@ -56,6 +56,7 @@ import java.net.URL * This test ensures that alternative route recommendations * are given during active guidance. */ +@OptIn(ExperimentalPreviewMapboxNavigationAPI::class) class RouteAlternativesTest : BaseCoreNoCleanUpTest() { @get:Rule diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteRequestTests.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteRequestTests.kt index 209a81353df..0442e46decf 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteRequestTests.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteRequestTests.kt @@ -3,6 +3,7 @@ package com.mapbox.navigation.instrumentation_tests.core import android.location.Location import com.mapbox.api.directions.v5.models.RouteOptions import com.mapbox.geojson.Point +import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI import com.mapbox.navigation.base.extensions.applyDefaultNavigationOptions import com.mapbox.navigation.base.route.isRetryable import com.mapbox.navigation.instrumentation_tests.R @@ -25,6 +26,7 @@ import org.junit.Test * See https://docs.mapbox.com/api/navigation/directions/#directions-api-errors for info * about different Directions API failures */ +@OptIn(ExperimentalPreviewMapboxNavigationAPI::class) class RouteRequestTests : BaseCoreNoCleanUpTest() { @get:Rule diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/ui/routeline/RouteLineLayersTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/ui/routeline/RouteLineLayersTest.kt index ebbfc18e273..04b5fabedd3 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/ui/routeline/RouteLineLayersTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/ui/routeline/RouteLineLayersTest.kt @@ -55,6 +55,7 @@ import java.util.concurrent.CountDownLatch import kotlin.coroutines.resume import kotlin.coroutines.suspendCoroutine +@OptIn(ExperimentalPreviewMapboxNavigationAPI::class) class RouteLineLayersTest : BaseTest( BasicNavigationViewActivity::class.java ) { diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/utils/tiles/TileStore.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/utils/tiles/TileStore.kt index 5c5e78d2c1e..a8990930900 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/utils/tiles/TileStore.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/utils/tiles/TileStore.kt @@ -3,6 +3,7 @@ package com.mapbox.navigation.instrumentation_tests.utils.tiles import android.util.Log import com.mapbox.common.TileRegionLoadOptions import com.mapbox.geojson.Geometry +import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI import com.mapbox.navigation.base.route.RouteRefreshOptions import com.mapbox.navigation.core.MapboxNavigation import com.mapbox.navigation.instrumentation_tests.utils.createTileStore @@ -48,6 +49,7 @@ suspend fun loadRegion(navigation: MapboxNavigation, region: OfflineRegion) { } } +@OptIn(ExperimentalPreviewMapboxNavigationAPI::class) suspend inline fun BaseCoreNoCleanUpTest.withMapboxNavigationAndOfflineTilesForRegion( region: OfflineRegion, historyRecorderRule: MapboxHistoryTestRule? = null,