diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java index 245424d769..5356242622 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java @@ -11,13 +11,10 @@ import android.text.TextUtils; import com.mapbox.android.core.location.LocationEngine; import com.mapbox.android.core.location.LocationEnginePriority; import com.mapbox.android.core.location.LocationEngineProvider; -import com.mapbox.android.telemetry.MapboxTelemetry; import com.mapbox.mapboxsdk.constants.MapboxConstants; import com.mapbox.mapboxsdk.exceptions.MapboxConfigurationException; import com.mapbox.mapboxsdk.net.ConnectivityReceiver; -import timber.log.Timber; - /** * The entry point to initialize the Mapbox Android SDK. * <p> @@ -35,8 +32,6 @@ public final class Mapbox { private String accessToken; private Boolean connected; private LocationEngine locationEngine; - @SuppressLint("StaticFieldLeak") - private static MapboxTelemetry telemetry; /** * Get an instance of Mapbox. @@ -57,13 +52,6 @@ public final class Mapbox { INSTANCE = new Mapbox(appContext, accessToken, locationEngine); locationEngine.setPriority(LocationEnginePriority.NO_POWER); - try { - telemetry = new MapboxTelemetry(appContext, accessToken, BuildConfig.MAPBOX_EVENTS_USER_AGENT); - telemetry.enable(); - } catch (Exception exception) { - Timber.e(exception, "Unable to instantiate Mapbox telemetry"); - } - ConnectivityReceiver.instance(appContext); } return INSTANCE; @@ -151,11 +139,8 @@ public final class Mapbox { * * @return the location engine configured */ + // TODO Do we need to expose this? public static LocationEngine getLocationEngine() { return INSTANCE.locationEngine; } - - public static MapboxTelemetry obtainTelemetry() { - return INSTANCE.telemetry; - } } |