[android] - add Keep annotations to abstract components

This commit is contained in:
tobrun
2018-09-03 12:30:01 +02:00
committed by Tobrun
parent 59ebe022bc
commit af0de6e015
3 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import com.mapbox.mapboxsdk.Mapbox;
import java.util.concurrent.locks.ReentrantLock;
@Keep
public class NativeHttpRequest implements HttpResponder {
private final HttpRequest httpRequest = Mapbox.getModuleProvider().createHttpRequest();

View File

@@ -1,5 +1,6 @@
package com.mapbox.mapboxsdk.log;
import android.support.annotation.Keep;
import android.util.Log;
/**
@@ -9,6 +10,7 @@ import android.util.Log;
* Alternative implementations can be set with {@link #setLoggerDefinition(LoggerDefinition)}.
* </p>
*/
@Keep
public final class Logger {
private static final LoggerDefinition DEFAULT = new LoggerDefinition() {