Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump nn and common #7812

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
// version which we should use in this build
def mapboxNavigatorVersion = System.getenv("FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION")
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == '') {
mapboxNavigatorVersion = '203.0.0'
mapboxNavigatorVersion = '205.0.0'
}
println("Navigation Native version: " + mapboxNavigatorVersion)
def androidXWorkManagerVersion = project.hasProperty('WORK_MANAGER_VERSION') ? project.property('WORK_MANAGER_VERSION') : '2.7.0'
Expand All @@ -25,7 +25,7 @@ ext {
mapboxMapSdk : '10.16.6',
mapboxSdkServices : '6.15.0',
mapboxNavigator : "${mapboxNavigatorVersion}",
mapboxCommonNative : '23.9.1',
mapboxCommonNative : '23.9.3',
mapboxCrashMonitor : '2.0.0',
mapboxAnnotationPlugin : '0.8.0',
mapboxBaseAndroid : '0.8.0',
Expand Down
3 changes: 3 additions & 0 deletions libnavigation-core/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,14 @@ package com.mapbox.navigation.core.adas {
@com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI public final class AdasisConfigProfileShortTypeOptions {
method public boolean getCurvature();
method public boolean getHeadingChange();
method public boolean getHistoryAverageSpeed();
method public boolean getRoadCondition();
method public boolean getSlopeStep();
method public boolean getVariableSpeedSign();
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder toBuilder();
property public final boolean curvature;
property public final boolean headingChange;
property public final boolean historyAverageSpeed;
property public final boolean roadCondition;
property public final boolean slopeStep;
property public final boolean variableSpeedSign;
Expand All @@ -357,6 +359,7 @@ package com.mapbox.navigation.core.adas {
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions build();
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder curvature(boolean curvature);
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder headingChange(boolean headingChange);
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder historyAverageSpeed(boolean historyAverageSpeed);
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder roadCondition(boolean roadCondition);
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder slopeStep(boolean slopeStep);
method public com.mapbox.navigation.core.adas.AdasisConfigProfileShortTypeOptions.Builder variableSpeedSign(boolean variableSpeedSign);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI
* @param roadCondition if true, roadCondition type will be generated
* @param variableSpeedSign if true, variableSpeedSign type will be generated
* @param headingChange if true, headingChange type will be generated
* @param historyAverageSpeed if true, headingChange type will be generated
*/
@ExperimentalPreviewMapboxNavigationAPI
class AdasisConfigProfileShortTypeOptions private constructor(
Expand All @@ -18,6 +19,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
val roadCondition: Boolean,
val variableSpeedSign: Boolean,
val headingChange: Boolean,
val historyAverageSpeed: Boolean,
) {

/**
Expand All @@ -29,6 +31,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
.roadCondition(roadCondition)
.variableSpeedSign(variableSpeedSign)
.headingChange(headingChange)
.historyAverageSpeed(historyAverageSpeed)

@JvmSynthetic
internal fun toNativeAdasisConfigProfileShortTypeOptions():
Expand All @@ -38,7 +41,8 @@ class AdasisConfigProfileShortTypeOptions private constructor(
curvature,
roadCondition,
variableSpeedSign,
headingChange
headingChange,
historyAverageSpeed,
)
}

Expand All @@ -55,7 +59,8 @@ class AdasisConfigProfileShortTypeOptions private constructor(
if (curvature != other.curvature) return false
if (roadCondition != other.roadCondition) return false
if (variableSpeedSign != other.variableSpeedSign) return false
return headingChange == other.headingChange
if (headingChange != other.headingChange) return false
return historyAverageSpeed == other.historyAverageSpeed
}

/**
Expand All @@ -67,6 +72,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
result = 31 * result + roadCondition.hashCode()
result = 31 * result + variableSpeedSign.hashCode()
result = 31 * result + headingChange.hashCode()
result = 31 * result + historyAverageSpeed.hashCode()
return result
}

Expand All @@ -80,6 +86,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
"roadCondition=$roadCondition, " +
"variableSpeedSign=$variableSpeedSign, " +
"headingChange=$headingChange" +
"historyAverageSpeed=$historyAverageSpeed" +
")"
}

Expand All @@ -93,6 +100,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
private var roadCondition: Boolean = true
private var variableSpeedSign: Boolean = false
private var headingChange: Boolean = true
private var historyAverageSpeed: Boolean = false

/**
* If true, slopeStep type will be generated
Expand Down Expand Up @@ -129,6 +137,13 @@ class AdasisConfigProfileShortTypeOptions private constructor(
this.headingChange = headingChange
}

/**
* If true, historyAverageSpeed type will be generated
*/
fun historyAverageSpeed(historyAverageSpeed: Boolean) = apply {
this.historyAverageSpeed = historyAverageSpeed
}

/**
* Build the [AdasisConfigProfileShortTypeOptions]
*/
Expand All @@ -138,6 +153,7 @@ class AdasisConfigProfileShortTypeOptions private constructor(
roadCondition = roadCondition,
variableSpeedSign = variableSpeedSign,
headingChange = headingChange,
historyAverageSpeed = historyAverageSpeed,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class AdasisConfigProfileShortTypeOptionsTest :
.roadCondition(false)
.variableSpeedSign(true)
.headingChange(false)
.historyAverageSpeed(true)
}

override fun trigger() {
Expand Down
Loading