summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Paczos <lukasz.paczos@mapbox.com>2018-10-25 16:42:40 +0200
committerOsana Babayan <32496536+osana@users.noreply.github.com>2018-10-25 10:42:40 -0400
commit2337a6311c73f69c92a5dce3565ac159b5f3fe25 (patch)
treeb3d20a0f61f71e014004e8f128bdd74b6d194c62
parenta7b3f40f443cfa09f46251eb7d2c1eee8bf762ef (diff)
downloadqtlocation-mapboxgl-2337a6311c73f69c92a5dce3565ac159b5f3fe25.tar.gz
[android] telemetry 3.5.0 bump (#13171)
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/TelemetryImpl.java21
-rw-r--r--platform/android/gradle/dependencies.gradle2
2 files changed, 14 insertions, 9 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/TelemetryImpl.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/TelemetryImpl.java
index e8e0504157..c083fb98d6 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/TelemetryImpl.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/TelemetryImpl.java
@@ -1,6 +1,8 @@
package com.mapbox.mapboxsdk.module.telemetry;
import android.content.Context;
+import android.support.annotation.NonNull;
+
import com.mapbox.android.telemetry.AppUserTurnstile;
import com.mapbox.android.telemetry.Event;
import com.mapbox.android.telemetry.MapEventFactory;
@@ -113,22 +115,25 @@ public class TelemetryImpl implements TelemetryDefinition {
}
@Override
- public void onCreateOfflineRegion(OfflineRegionDefinition offlineDefinition) {
+ public void onCreateOfflineRegion(@NonNull OfflineRegionDefinition offlineDefinition) {
MapEventFactory mapEventFactory = new MapEventFactory();
- Event mapOfflineEvent;
if (offlineDefinition instanceof OfflineTilePyramidRegionDefinition) {
OfflineTilePyramidRegionDefinition tileDefinition =
(OfflineTilePyramidRegionDefinition)offlineDefinition;
- mapOfflineEvent = mapEventFactory.buildMapOfflineEvent(
- tileDefinition.getMinZoom(), tileDefinition.getMaxZoom(), "bounds",
- new String[]{tileDefinition.getStyleURL()});
+ telemetry.push(mapEventFactory.createOfflineDownloadStartEvent(
+ "tileregion",
+ tileDefinition.getMinZoom(),
+ tileDefinition.getMaxZoom(),
+ tileDefinition.getStyleURL()));
} else {
OfflineGeometryRegionDefinition geometryDefinition =
(OfflineGeometryRegionDefinition) offlineDefinition;
- mapOfflineEvent = mapEventFactory.buildMapOfflineEvent(
- geometryDefinition.getMinZoom(), geometryDefinition.getMaxZoom(), geometryDefinition.getGeometry().type(),
- new String[]{geometryDefinition.getStyleURL()});
+ telemetry.push(mapEventFactory.createOfflineDownloadStartEvent(
+ "shaperegion",
+ geometryDefinition.getMinZoom(),
+ geometryDefinition.getMaxZoom(),
+ geometryDefinition.getStyleURL()));
}
}
diff --git a/platform/android/gradle/dependencies.gradle b/platform/android/gradle/dependencies.gradle
index 21b6047f9e..7fc89c4c09 100644
--- a/platform/android/gradle/dependencies.gradle
+++ b/platform/android/gradle/dependencies.gradle
@@ -9,7 +9,7 @@ ext {
versions = [
mapboxServices : '3.4.1',
- mapboxTelemetry : '3.3.0',
+ mapboxTelemetry : '3.5.0',
mapboxGestures : '0.2.0',
supportLib : '27.1.1',
constraintLayout: '1.1.2',