Skip to content

Commit 7491d40

Browse files
authored
bump nn and common (#7812)
1 parent 1ef3f07 commit 7491d40

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

gradle/dependencies.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
// version which we should use in this build
1414
def mapboxNavigatorVersion = System.getenv("FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION")
1515
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == '') {
16-
mapboxNavigatorVersion = '203.0.0'
16+
mapboxNavigatorVersion = '205.0.0'
1717
}
1818
println("Navigation Native version: " + mapboxNavigatorVersion)
1919
def androidXWorkManagerVersion = project.hasProperty('WORK_MANAGER_VERSION') ? project.property('WORK_MANAGER_VERSION') : '2.7.0'
@@ -25,7 +25,7 @@ ext {
2525
mapboxMapSdk : '10.16.6',
2626
mapboxSdkServices : '6.15.0',
2727
mapboxNavigator : "${mapboxNavigatorVersion}",
28-
mapboxCommonNative : '23.9.1',
28+
mapboxCommonNative : '23.9.3',
2929
mapboxCrashMonitor : '2.0.0',
3030
mapboxAnnotationPlugin : '0.8.0',
3131
mapboxBaseAndroid : '0.8.0',

libnavigation-core/api/current.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,14 @@ package com.mapbox.navigation.core.adas {
341341
@com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI public final class AdasisConfigProfileShortTypeOptions {
342342
method public boolean getCurvature();
343343
method public boolean getHeadingChange();
344+
method public boolean getHistoryAverageSpeed();
344345
method public boolean getRoadCondition();
345346
method public boolean getSlopeStep();
346347
method public boolean getVariableSpeedSign();
347348
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder toBuilder();
348349
property public final boolean curvature;
349350
property public final boolean headingChange;
351+
property public final boolean historyAverageSpeed;
350352
property public final boolean roadCondition;
351353
property public final boolean slopeStep;
352354
property public final boolean variableSpeedSign;
@@ -357,6 +359,7 @@ package com.mapbox.navigation.core.adas {
357359
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions build();
358360
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder curvature(boolean curvature);
359361
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder headingChange(boolean headingChange);
362+
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder historyAverageSpeed(boolean historyAverageSpeed);
360363
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder roadCondition(boolean roadCondition);
361364
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder slopeStep(boolean slopeStep);
362365
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder variableSpeedSign(boolean variableSpeedSign);

libnavigation-core/src/main/java/com/mapbox/navigation/core/adas/AdasisConfigProfileShortTypeOptions.kt

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI
1010
* @param roadCondition if true, roadCondition type will be generated
1111
* @param variableSpeedSign if true, variableSpeedSign type will be generated
1212
* @param headingChange if true, headingChange type will be generated
13+
* @param historyAverageSpeed if true, headingChange type will be generated
1314
*/
1415
@ExperimentalPreviewMapboxNavigationAPI
1516
class AdasisConfigProfileShortTypeOptions private constructor(
@@ -18,6 +19,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
1819
val roadCondition: Boolean,
1920
val variableSpeedSign: Boolean,
2021
val headingChange: Boolean,
22+
val historyAverageSpeed: Boolean,
2123
) {
2224

2325
/**
@@ -29,6 +31,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
2931
.roadCondition(roadCondition)
3032
.variableSpeedSign(variableSpeedSign)
3133
.headingChange(headingChange)
34+
.historyAverageSpeed(historyAverageSpeed)
3235

3336
@JvmSynthetic
3437
internal fun toNativeAdasisConfigProfileShortTypeOptions():
@@ -38,7 +41,8 @@ class AdasisConfigProfileShortTypeOptions private constructor(
3841
curvature,
3942
roadCondition,
4043
variableSpeedSign,
41-
headingChange
44+
headingChange,
45+
historyAverageSpeed,
4246
)
4347
}
4448

@@ -55,7 +59,8 @@ class AdasisConfigProfileShortTypeOptions private constructor(
5559
if (curvature != other.curvature) return false
5660
if (roadCondition != other.roadCondition) return false
5761
if (variableSpeedSign != other.variableSpeedSign) return false
58-
return headingChange == other.headingChange
62+
if (headingChange != other.headingChange) return false
63+
return historyAverageSpeed == other.historyAverageSpeed
5964
}
6065

6166
/**
@@ -67,6 +72,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
6772
result = 31 * result + roadCondition.hashCode()
6873
result = 31 * result + variableSpeedSign.hashCode()
6974
result = 31 * result + headingChange.hashCode()
75+
result = 31 * result + historyAverageSpeed.hashCode()
7076
return result
7177
}
7278

@@ -80,6 +86,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
8086
"roadCondition=$roadCondition, " +
8187
"variableSpeedSign=$variableSpeedSign, " +
8288
"headingChange=$headingChange" +
89+
"historyAverageSpeed=$historyAverageSpeed" +
8390
")"
8491
}
8592

@@ -93,6 +100,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
93100
private var roadCondition: Boolean = true
94101
private var variableSpeedSign: Boolean = false
95102
private var headingChange: Boolean = true
103+
private var historyAverageSpeed: Boolean = false
96104

97105
/**
98106
* If true, slopeStep type will be generated
@@ -129,6 +137,13 @@ class AdasisConfigProfileShortTypeOptions private constructor(
129137
this.headingChange = headingChange
130138
}
131139

140+
/**
141+
* If true, historyAverageSpeed type will be generated
142+
*/
143+
fun historyAverageSpeed(historyAverageSpeed: Boolean) = apply {
144+
this.historyAverageSpeed = historyAverageSpeed
145+
}
146+
132147
/**
133148
* Build the [AdasisConfigProfileShortTypeOptions]
134149
*/
@@ -138,6 +153,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
138153
roadCondition = roadCondition,
139154
variableSpeedSign = variableSpeedSign,
140155
headingChange = headingChange,
156+
historyAverageSpeed = historyAverageSpeed,
141157
)
142158
}
143159
}

libnavigation-core/src/test/java/com/mapbox/navigation/core/adas/AdasisConfigProfileShortTypeOptionsTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class AdasisConfigProfileShortTypeOptionsTest :
1717
.roadCondition(false)
1818
.variableSpeedSign(true)
1919
.headingChange(false)
20+
.historyAverageSpeed(true)
2021
}
2122

2223
override fun trigger() {

0 commit comments

Comments
 (0)