diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-07-24 00:20:02 +0200 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2018-07-26 19:47:11 +0200 |
commit | 94ad8e2ff8928bec316dfcc9790db7b522673d3e (patch) | |
tree | 1a7b0c7fb42aa6dba049c5d42305f6d5c4ac93b7 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java | |
parent | 5fcd6e38a9e9ca755d997b83f007f8a2f435cf45 (diff) | |
download | qtlocation-mapboxgl-94ad8e2ff8928bec316dfcc9790db7b522673d3e.tar.gz |
[android] using @Keep annotation across the project with the help of lint checks
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java index 4aefad3956..f2ddb600a5 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java @@ -3,6 +3,7 @@ package com.mapbox.mapboxsdk.style.layers; import android.support.annotation.ColorInt; +import android.support.annotation.Keep; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.UiThread; @@ -26,6 +27,7 @@ public class SymbolLayer extends Layer { * * @param nativePtr pointer used by core */ + @Keep public SymbolLayer(long nativePtr) { super(nativePtr); } @@ -41,6 +43,7 @@ public class SymbolLayer extends Layer { initialize(layerId, sourceId); } + @Keep protected native void initialize(String layerId, String sourceId); /** @@ -982,155 +985,230 @@ public class SymbolLayer extends Layer { return (PropertyValue<String>) new PropertyValue("text-translate-anchor", nativeGetTextTranslateAnchor()); } + @Keep private native Object nativeGetSymbolPlacement(); + @Keep private native Object nativeGetSymbolSpacing(); + @Keep private native Object nativeGetSymbolAvoidEdges(); + @Keep private native Object nativeGetIconAllowOverlap(); + @Keep private native Object nativeGetIconIgnorePlacement(); + @Keep private native Object nativeGetIconOptional(); + @Keep private native Object nativeGetIconRotationAlignment(); + @Keep private native Object nativeGetIconSize(); + @Keep private native Object nativeGetIconTextFit(); + @Keep private native Object nativeGetIconTextFitPadding(); + @Keep private native Object nativeGetIconImage(); + @Keep private native Object nativeGetIconRotate(); + @Keep private native Object nativeGetIconPadding(); + @Keep private native Object nativeGetIconKeepUpright(); + @Keep private native Object nativeGetIconOffset(); + @Keep private native Object nativeGetIconAnchor(); + @Keep private native Object nativeGetIconPitchAlignment(); + @Keep private native Object nativeGetTextPitchAlignment(); + @Keep private native Object nativeGetTextRotationAlignment(); + @Keep private native Object nativeGetTextField(); + @Keep private native Object nativeGetTextFont(); + @Keep private native Object nativeGetTextSize(); + @Keep private native Object nativeGetTextMaxWidth(); + @Keep private native Object nativeGetTextLineHeight(); + @Keep private native Object nativeGetTextLetterSpacing(); + @Keep private native Object nativeGetTextJustify(); + @Keep private native Object nativeGetTextAnchor(); + @Keep private native Object nativeGetTextMaxAngle(); + @Keep private native Object nativeGetTextRotate(); + @Keep private native Object nativeGetTextPadding(); + @Keep private native Object nativeGetTextKeepUpright(); + @Keep private native Object nativeGetTextTransform(); + @Keep private native Object nativeGetTextOffset(); + @Keep private native Object nativeGetTextAllowOverlap(); + @Keep private native Object nativeGetTextIgnorePlacement(); + @Keep private native Object nativeGetTextOptional(); + @Keep private native Object nativeGetIconOpacity(); + @Keep private native TransitionOptions nativeGetIconOpacityTransition(); + @Keep private native void nativeSetIconOpacityTransition(long duration, long delay); + @Keep private native Object nativeGetIconColor(); + @Keep private native TransitionOptions nativeGetIconColorTransition(); + @Keep private native void nativeSetIconColorTransition(long duration, long delay); + @Keep private native Object nativeGetIconHaloColor(); + @Keep private native TransitionOptions nativeGetIconHaloColorTransition(); + @Keep private native void nativeSetIconHaloColorTransition(long duration, long delay); + @Keep private native Object nativeGetIconHaloWidth(); + @Keep private native TransitionOptions nativeGetIconHaloWidthTransition(); + @Keep private native void nativeSetIconHaloWidthTransition(long duration, long delay); + @Keep private native Object nativeGetIconHaloBlur(); + @Keep private native TransitionOptions nativeGetIconHaloBlurTransition(); + @Keep private native void nativeSetIconHaloBlurTransition(long duration, long delay); + @Keep private native Object nativeGetIconTranslate(); + @Keep private native TransitionOptions nativeGetIconTranslateTransition(); + @Keep private native void nativeSetIconTranslateTransition(long duration, long delay); + @Keep private native Object nativeGetIconTranslateAnchor(); + @Keep private native Object nativeGetTextOpacity(); + @Keep private native TransitionOptions nativeGetTextOpacityTransition(); + @Keep private native void nativeSetTextOpacityTransition(long duration, long delay); + @Keep private native Object nativeGetTextColor(); + @Keep private native TransitionOptions nativeGetTextColorTransition(); + @Keep private native void nativeSetTextColorTransition(long duration, long delay); + @Keep private native Object nativeGetTextHaloColor(); + @Keep private native TransitionOptions nativeGetTextHaloColorTransition(); + @Keep private native void nativeSetTextHaloColorTransition(long duration, long delay); + @Keep private native Object nativeGetTextHaloWidth(); + @Keep private native TransitionOptions nativeGetTextHaloWidthTransition(); + @Keep private native void nativeSetTextHaloWidthTransition(long duration, long delay); + @Keep private native Object nativeGetTextHaloBlur(); + @Keep private native TransitionOptions nativeGetTextHaloBlurTransition(); + @Keep private native void nativeSetTextHaloBlurTransition(long duration, long delay); + @Keep private native Object nativeGetTextTranslate(); + @Keep private native TransitionOptions nativeGetTextTranslateTransition(); + @Keep private native void nativeSetTextTranslateTransition(long duration, long delay); + @Keep private native Object nativeGetTextTranslateAnchor(); @Override + @Keep protected native void finalize() throws Throwable; } |