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/Layer.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/Layer.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java index 3edc202c8e..92aa54e55f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java @@ -1,5 +1,6 @@ package com.mapbox.mapboxsdk.style.layers; +import android.support.annotation.Keep; import android.support.annotation.NonNull; import com.google.gson.JsonElement; @@ -11,9 +12,12 @@ import com.mapbox.mapboxsdk.utils.ThreadUtils; */ public abstract class Layer { + @Keep private long nativePtr; + @Keep private boolean invalidated; + @Keep public Layer(long nativePtr) { checkThread(); this.nativePtr = nativePtr; @@ -77,30 +81,43 @@ public abstract class Layer { } @Override + @Keep protected native void finalize() throws Throwable; + @Keep protected native String nativeGetId(); + @Keep protected native Object nativeGetVisibility(); + @Keep protected native void nativeSetLayoutProperty(String name, Object value); + @Keep protected native void nativeSetPaintProperty(String name, Object value); + @Keep protected native void nativeSetFilter(Object[] filter); + @Keep protected native JsonElement nativeGetFilter(); + @Keep protected native void nativeSetSourceLayer(String sourceLayer); + @Keep protected native String nativeGetSourceLayer(); + @Keep protected native float nativeGetMinZoom(); + @Keep protected native float nativeGetMaxZoom(); + @Keep protected native void nativeSetMinZoom(float zoom); + @Keep protected native void nativeSetMaxZoom(float zoom); public long getNativePtr() { |