[android] MapStrictMode implementation

This commit is contained in:
Łukasz Paczos
2018-08-29 18:50:01 +02:00
parent e4bcd1abed
commit 7227b4a7ec
16 changed files with 136 additions and 10 deletions

View File

@@ -3,6 +3,8 @@ package com.mapbox.mapboxsdk.testapp;
import android.app.Application;
import android.os.StrictMode;
import android.text.TextUtils;
import com.mapbox.mapboxsdk.MapStrictMode;
import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.log.Logger;
import com.mapbox.mapboxsdk.maps.TelemetryDefinition;
@@ -78,6 +80,8 @@ public class MapboxApplication extends Application {
throw new IllegalStateException("Telemetry was unavailable during test application start.");
}
telemetry.setDebugLoggingEnabled(true);
MapStrictMode.setStrictModeEnabled(true);
}
private static void validateAccessToken(String accessToken) {