From f0b9964ebda93334130859591da60741ff9d6088 Mon Sep 17 00:00:00 2001 From: Yury Kanetski Date: Wed, 25 Jan 2023 12:56:50 +0100 Subject: [PATCH] temp user agent --- .../com/mapbox/navigation/metrics/MapboxMetricsReporter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt b/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt index 83349e50152..dace9f8156a 100644 --- a/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt +++ b/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt @@ -80,12 +80,12 @@ object MapboxMetricsReporter : MetricsReporter { fun init( context: Context, accessToken: String, - userAgent: String + _userAgent: String ) { // todo REMOVE - 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))" + 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))" isTelemetryInitialized = true - val eventsServerOptions = EventsServerOptions(accessToken, _userAgent, null) + val eventsServerOptions = EventsServerOptions(accessToken, userAgent, null) eventsService = EventsServiceProvider.provideEventsService(eventsServerOptions) telemetryService = TelemetryServiceProvider.provideTelemetryService(eventsServerOptions) eventsService.registerObserver(eventsServiceObserver)