Skip to content

Commit cf99b12

Browse files
authored
Migrate to Beta.23 (#22)
1 parent c549c10 commit cf99b12

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

app/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ android {
6767
}
6868

6969
dependencies {
70-
implementation("com.mapbox.navigationux:android:1.0.0-beta.22")
71-
implementation("com.mapbox.navigationux:search-api:1.0.0-beta.22")
70+
implementation("com.mapbox.navigationux:android:1.0.0-beta.23")
71+
implementation("com.mapbox.navigationux:search-api:1.0.0-beta.23")
7272

7373
implementation("androidx.core:core-ktx:1.9.0")
7474
implementation("androidx.appcompat:appcompat:1.6.1")

app/src/main/java/com/mapbox/dash/example/MainActivity.kt

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class MainActivity : DrawerActivity() {
4646
override val coordinate = Point.fromLngLat(-77.0342, 38.9044)
4747
override val etaMinutes = null
4848
override val id = "customHistoryItemId1122334455"
49+
override val mapboxId: String? = null
4950
override val name = "1123 15th Street Northwest"
5051
override val type = DashSearchResultType.ADDRESS
5152
override val categories = listOf("some category")

app/src/main/java/com/mapbox/dash/example/MainApplication.kt

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class MainApplication : Application() {
4545
uiSettingsConfig {
4646
showRouteOptions = true
4747
showSpeedLimitsOptions = true
48-
useSidebar = true
4948
}
5049
searchConfig {
5150
resultsAdapter = ShowcaseSearchResultsAdapter()

app/src/main/java/com/mapbox/dash/example/ShowcaseSearchResultsAdapter.kt

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ShowcaseSearchResultsAdapter : DashSearchResultsAdapter {
1515

1616
private val customSuggestion = object : DashSearchSuggestion {
1717
override val id: String = "customSuggestionId1234567890"
18+
override val mapboxId: String? = null
1819
override val name: String = "Custom suggestion"
1920
override val descriptionText = "Suggestion provided by a third-party service"
2021
override val address = null
@@ -28,6 +29,7 @@ class ShowcaseSearchResultsAdapter : DashSearchResultsAdapter {
2829
override val coordinate = Point.fromLngLat(-77.0342, 38.9044)
2930
override val etaMinutes = null
3031
override val id = "customSearchResultId1122334455"
32+
override val mapboxId: String? = null
3133
override val name = "The search result for the custom suggestion"
3234
override val type = DashSearchResultType.ADDRESS
3335
override val categories = listOf("Food")

settings.gradle.kts

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ dependencyResolutionManagement {
2121
repositories {
2222
google()
2323
mavenCentral()
24+
maven {
25+
url = uri("https://api.mapbox.com/downloads/v2/snapshots/maven")
26+
credentials {
27+
username = "mapbox"
28+
password = token
29+
}
30+
authentication {
31+
create<BasicAuthentication>("basic")
32+
}
33+
}
2434
maven {
2535
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
2636
credentials {

0 commit comments

Comments
 (0)