Skip to content

Commit

Permalink
NavigationSdkInformationProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
DzmitryFomchyn committed Dec 7, 2023
1 parent 4d90096 commit 5a06d28
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/artifact-settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def getVersionName() {
// def cmd = ["git", "describe", "--tag", "--match", "$prefix*", "--abbrev=0"]
// def version = cmd.execute().text
// return project.ext.snapshot ? getSnapshotVersion(version) : getReleaseVersion(version)
return "2.17.0-adas-preview-4-SNAPSHOT"
return "2.17.0-adas-preview-5-SNAPSHOT"
}

def getReleaseVersion(String version) {
Expand Down
6 changes: 6 additions & 0 deletions libnavigation-core/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ package com.mapbox.navigation.core {
field @Deprecated public static final com.mapbox.navigation.core.MapboxNavigationProvider INSTANCE;
}

@com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI public final class NavigationSdkInformationProvider {
method public String getVersionName();
property public final String versionName;
field public static final com.mapbox.navigation.core.NavigationSdkInformationProvider INSTANCE;
}

public interface NavigationVersionSwitchObserver {
method public void onSwitchToFallbackVersion(String? tilesVersion);
method public void onSwitchToTargetVersion(String? tilesVersion);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.mapbox.navigation.core

import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI

/**
* A class that provides Navigation SDK information, like version name
*/
@ExperimentalPreviewMapboxNavigationAPI
object NavigationSdkInformationProvider {

/**
* Returns Navigation SDK version name
*/
val versionName: String
get() = BuildConfig.MAPBOX_NAVIGATION_VERSION_NAME
}

0 comments on commit 5a06d28

Please sign in to comment.