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/LineLayer.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/LineLayer.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/LineLayer.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/LineLayer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/LineLayer.java index b094162c4b..4a742cd7a6 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/LineLayer.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/LineLayer.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 LineLayer extends Layer { * * @param nativePtr pointer used by core */ + @Keep public LineLayer(long nativePtr) { super(nativePtr); } @@ -41,6 +43,7 @@ public class LineLayer extends Layer { initialize(layerId, sourceId); } + @Keep protected native void initialize(String layerId, String sourceId); /** @@ -475,71 +478,104 @@ public class LineLayer extends Layer { nativeSetLinePatternTransition(options.getDuration(), options.getDelay()); } + @Keep private native Object nativeGetLineCap(); + @Keep private native Object nativeGetLineJoin(); + @Keep private native Object nativeGetLineMiterLimit(); + @Keep private native Object nativeGetLineRoundLimit(); + @Keep private native Object nativeGetLineOpacity(); + @Keep private native TransitionOptions nativeGetLineOpacityTransition(); + @Keep private native void nativeSetLineOpacityTransition(long duration, long delay); + @Keep private native Object nativeGetLineColor(); + @Keep private native TransitionOptions nativeGetLineColorTransition(); + @Keep private native void nativeSetLineColorTransition(long duration, long delay); + @Keep private native Object nativeGetLineTranslate(); + @Keep private native TransitionOptions nativeGetLineTranslateTransition(); + @Keep private native void nativeSetLineTranslateTransition(long duration, long delay); + @Keep private native Object nativeGetLineTranslateAnchor(); + @Keep private native Object nativeGetLineWidth(); + @Keep private native TransitionOptions nativeGetLineWidthTransition(); + @Keep private native void nativeSetLineWidthTransition(long duration, long delay); + @Keep private native Object nativeGetLineGapWidth(); + @Keep private native TransitionOptions nativeGetLineGapWidthTransition(); + @Keep private native void nativeSetLineGapWidthTransition(long duration, long delay); + @Keep private native Object nativeGetLineOffset(); + @Keep private native TransitionOptions nativeGetLineOffsetTransition(); + @Keep private native void nativeSetLineOffsetTransition(long duration, long delay); + @Keep private native Object nativeGetLineBlur(); + @Keep private native TransitionOptions nativeGetLineBlurTransition(); + @Keep private native void nativeSetLineBlurTransition(long duration, long delay); + @Keep private native Object nativeGetLineDasharray(); + @Keep private native TransitionOptions nativeGetLineDasharrayTransition(); + @Keep private native void nativeSetLineDasharrayTransition(long duration, long delay); + @Keep private native Object nativeGetLinePattern(); + @Keep private native TransitionOptions nativeGetLinePatternTransition(); + @Keep private native void nativeSetLinePatternTransition(long duration, long delay); @Override + @Keep protected native void finalize() throws Throwable; } |