File tree 5 files changed +15
-3
lines changed
src/main/java/com/mapbox/dash/example
5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ android {
67
67
}
68
68
69
69
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 " )
72
72
73
73
implementation(" androidx.core:core-ktx:1.9.0" )
74
74
implementation(" androidx.appcompat:appcompat:1.6.1" )
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class MainActivity : DrawerActivity() {
46
46
override val coordinate = Point .fromLngLat(- 77.0342 , 38.9044 )
47
47
override val etaMinutes = null
48
48
override val id = " customHistoryItemId1122334455"
49
+ override val mapboxId: String? = null
49
50
override val name = " 1123 15th Street Northwest"
50
51
override val type = DashSearchResultType .ADDRESS
51
52
override val categories = listOf (" some category" )
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ class MainApplication : Application() {
45
45
uiSettingsConfig {
46
46
showRouteOptions = true
47
47
showSpeedLimitsOptions = true
48
- useSidebar = true
49
48
}
50
49
searchConfig {
51
50
resultsAdapter = ShowcaseSearchResultsAdapter ()
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class ShowcaseSearchResultsAdapter : DashSearchResultsAdapter {
15
15
16
16
private val customSuggestion = object : DashSearchSuggestion {
17
17
override val id: String = " customSuggestionId1234567890"
18
+ override val mapboxId: String? = null
18
19
override val name: String = " Custom suggestion"
19
20
override val descriptionText = " Suggestion provided by a third-party service"
20
21
override val address = null
@@ -28,6 +29,7 @@ class ShowcaseSearchResultsAdapter : DashSearchResultsAdapter {
28
29
override val coordinate = Point .fromLngLat(- 77.0342 , 38.9044 )
29
30
override val etaMinutes = null
30
31
override val id = " customSearchResultId1122334455"
32
+ override val mapboxId: String? = null
31
33
override val name = " The search result for the custom suggestion"
32
34
override val type = DashSearchResultType .ADDRESS
33
35
override val categories = listOf (" Food" )
Original file line number Diff line number Diff line change @@ -21,6 +21,16 @@ dependencyResolutionManagement {
21
21
repositories {
22
22
google()
23
23
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
+ }
24
34
maven {
25
35
url = uri(" https://api.mapbox.com/downloads/v2/releases/maven" )
26
36
credentials {
You can’t perform that action at this time.
0 commit comments