File tree 3 files changed +5
-11
lines changed
libnavigation-core/src/main/java/com/mapbox/navigation/core
libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics
3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 13
13
// version which we should use in this build
14
14
def mapboxNavigatorVersion = System . getenv(" FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION" )
15
15
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == ' ' ) {
16
- mapboxNavigatorVersion = ' 124.0.1 '
16
+ mapboxNavigatorVersion = ' master-SNAPSHOT '
17
17
}
18
18
println (" Navigation Native version: " + mapboxNavigatorVersion)
19
19
Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ import kotlinx.coroutines.sync.withLock
153
153
import java.lang.reflect.Field
154
154
import java.util.Locale
155
155
156
- private const val MAPBOX_NAVIGATION_USER_AGENT_BASE = " mapbox-navigation-android"
157
156
private const val MAPBOX_NAVIGATION_TOKEN_EXCEPTION_ROUTER =
158
157
" You need to provide an access token in NavigationOptions in order to use the default " +
159
158
" Router."
@@ -546,7 +545,7 @@ class MapboxNavigation @VisibleForTesting internal constructor(
546
545
MapboxMetricsReporter .init (
547
546
navigationOptions.applicationContext,
548
547
token,
549
- obtainUserAgent()
548
+ USER_AGENT ,
550
549
)
551
550
MapboxMetricsReporter .toggleLogging(navigationOptions.isDebugLoggingEnabled)
552
551
}
@@ -1996,10 +1995,6 @@ class MapboxNavigation @VisibleForTesting internal constructor(
1996
1995
rerouteController?.interrupt()
1997
1996
}
1998
1997
1999
- private fun obtainUserAgent (): String {
2000
- return " $MAPBOX_NAVIGATION_USER_AGENT_BASE /${BuildConfig .MAPBOX_NAVIGATION_VERSION_NAME } "
2001
- }
2002
-
2003
1998
private fun monitorNotificationActionButton (channel : ReceiveChannel <NotificationAction >) {
2004
1999
mainJobController.scope.monitorChannelWithException(
2005
2000
channel,
Original file line number Diff line number Diff line change 1
1
package com.mapbox.navigation.metrics
2
2
3
3
import android.content.Context
4
+ import android.os.Handler
4
5
import com.google.gson.Gson
5
6
import com.mapbox.bindgen.Value
6
7
import com.mapbox.common.Event
@@ -66,7 +67,7 @@ object MapboxMetricsReporter : MetricsReporter {
66
67
* Events priority. See [EventPriority]
67
68
*/
68
69
@Volatile
69
- var eventsPriority: EventPriority = EventPriority .QUEUED
70
+ var eventsPriority: EventPriority = EventPriority .IMMEDIATE
70
71
71
72
/* *
72
73
* Initialize [EventsServiceInterface] and [TelemetryService] that need to send event to
@@ -80,10 +81,8 @@ object MapboxMetricsReporter : MetricsReporter {
80
81
fun init (
81
82
context : Context ,
82
83
accessToken : String ,
83
- _userAgent : String
84
+ userAgent : String
84
85
) {
85
- // todo REMOVE
86
- val userAgent = " com.mapbox.onetap.app/v0.146.0-7-g8fc5f5c/1465 MapboxNavigationNative/123.2.0MapboxNavigationNative MapboxCommon/23.2.1 Android (13; r0s (SM-S901B))"
87
86
isTelemetryInitialized = true
88
87
val eventsServerOptions = EventsServerOptions (accessToken, userAgent, null )
89
88
eventsService = EventsServiceProvider .provideEventsService(eventsServerOptions)
You can’t perform that action at this time.
0 commit comments