Skip to content

Commit

Permalink
Cherry-pick changes from 3.7 (#8206)
Browse files Browse the repository at this point in the history
* Adapt latest NN, bump versions (#8165)

* Dependencies bump

* Bump UXF dependencies

* Bump Maps SDK version

* Rename changelog files

* Fix API; Fix default options as agreed with NN

* fixed adasis api description (#8180)

* Make doc more clear (#8189)

* Remove changelog from 3.7

* Adapt Search SDK changes

* Bump NN

* Format code

---------

Co-authored-by: vadzim_v <[email protected]>
GitOrigin-RevId: 9394dc10e2986b8d1ec9167f76a995c0a241afaa
  • Loading branch information
2 people authored and github-actions[bot] committed Feb 17, 2025
1 parent be745ac commit c5d8db2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions base/src/main/java/com/mapbox/navigation/base/geometry/Angle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ class Angle private constructor(val value: Double, val unit: AngleUnit) {
companion object {

/**
* Converts this [Number] to an angle measurement in the specified [AngleUnit].
* Returns this [Number] as an [Angle] measurement in the specified [AngleUnit].
*
* @param unit The unit to which the number should be converted.
* @return An Angle object representing the converted angle.
* The [Angle.value] will be stored in the original [Angle.unit] without conversion.
* To obtain the value in a different unit, use [Angle.convert], [Angle.toFloat],
* or [Angle.toDouble], providing the target [AngleUnit] for conversion.
*
* @param unit The unit of this value.
* @return An Angle object representing the value in the specified unit.
*/
@JvmStatic
fun Number.toAngle(unit: AngleUnit): Angle = Angle(toDouble(), unit)
Expand Down
6 changes: 3 additions & 3 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ ext {
// version which we should use in this build
def mapboxNavigatorVersion = System.getenv("FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION")
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == '') {
mapboxNavigatorVersion = '324.0.0-SNAPSHOT-02-06--14-21.git-8e7863f.dd-drive3d-960'
mapboxNavigatorVersion = '323.0.0'
}
println("Navigation Native version: " + mapboxNavigatorVersion)

version = [
mapboxMapSdk : '11.10.0-rc.1',
mapboxMapSdk : '11.10.0',
mapboxSdkServices : '7.3.1',
mapboxNavigator : "${mapboxNavigatorVersion}",
mapboxCommonNative : '24.11.0-SNAPSHOT-02-06--14-21.git-8e7863f.dd-drive3d-960',
mapboxNavSdkCpp : '0.11.0-SNAPSHOT-02-06--14-21.git-8e7863f.dd-drive3d-960',
mapboxSearch : '2.8.0-rc.1',
mapboxSearch : '2.8.0',
mapboxBaseAndroid : '0.11.0',
androidXLifecycle : '2.4.0',
androidXCoreVersion : '1.6.0',
Expand Down

0 comments on commit c5d8db2

Please sign in to comment.