Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add Keep annotations to abstract components #12796

Merged
merged 1 commit into from
Sep 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.util.concurrent.locks.ReentrantLock;

@Keep
public class NativeHttpRequest implements HttpResponder {

private final HttpRequest httpRequest = Mapbox.getModuleProvider().createHttpRequest();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mapbox.mapboxsdk.log;

import android.support.annotation.Keep;
import android.util.Log;

/**
Expand All @@ -9,6 +10,7 @@
* Alternative implementations can be set with {@link #setLoggerDefinition(LoggerDefinition)}.
* </p>
*/
@Keep
public final class Logger {

private static final LoggerDefinition DEFAULT = new LoggerDefinition() {
Expand Down
4 changes: 3 additions & 1 deletion platform/android/MapboxGLAndroidSDKTestApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ android {

buildTypes {
debug {
testCoverageEnabled = true
testCoverageEnabled true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
Expand Down