diff options
author | Osana Babayan <32496536+osana@users.noreply.github.com> | 2018-11-28 13:44:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 13:44:44 -0500 |
commit | dfeadc05e4909b8db7254b86ccbb68dc38dfc6d7 (patch) | |
tree | ddb54ce5b5a0cd72ba5583d7195e748294b3cab3 | |
parent | ad03e42b2890fd430e99e543a40be42f09f47fba (diff) | |
download | qtlocation-mapboxgl-dfeadc05e4909b8db7254b86ccbb68dc38dfc6d7.tar.gz |
[android] deprecated annotations package (#13468)
16 files changed, 57 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java index 45e31beda6..8ea2266499 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java @@ -3,6 +3,7 @@ package com.mapbox.mapboxsdk.annotations; import android.support.annotation.NonNull; import android.support.annotation.Nullable; + import com.mapbox.mapboxsdk.maps.MapView; import com.mapbox.mapboxsdk.maps.MapboxMap; @@ -15,7 +16,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap; * This class manages attachment to a map and identification, but does not require * content to be placed at a geographical point. * </p> + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public abstract class Annotation implements Comparable<Annotation> { /** diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/ArrowDirection.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/ArrowDirection.java index 2fe5f8f420..220544815e 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/ArrowDirection.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/ArrowDirection.java @@ -5,6 +5,7 @@ import android.support.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +@Deprecated class ArrowDirection { @IntDef( {LEFT, RIGHT, TOP, BOTTOM}) @Retention(RetentionPolicy.SOURCE) diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java index 82868e2888..384ff8c0ac 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerOptions.java @@ -11,7 +11,11 @@ import com.mapbox.mapboxsdk.geometry.LatLng; * * @param <U> Type of the marker to be composed * @param <T> Type of the builder to be used for composing a custom Marker + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public abstract class BaseMarkerOptions<U extends Marker, T extends BaseMarkerOptions<U, T>> implements Parcelable { protected LatLng position; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BasePointCollection.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BasePointCollection.java index eeb9aa5017..b94721a80a 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BasePointCollection.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BasePointCollection.java @@ -10,7 +10,12 @@ import java.util.List; /** * Multipoint is an abstract annotation for combining geographical locations. + * + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public abstract class BasePointCollection extends Annotation { @Keep diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Bubble.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Bubble.java index 88fe385084..0768f9c2e4 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Bubble.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Bubble.java @@ -10,6 +10,7 @@ import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; +@Deprecated class Bubble extends Drawable { private RectF rect; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubbleLayout.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubbleLayout.java index dc359fa13a..f4a1484f8a 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubbleLayout.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubbleLayout.java @@ -14,7 +14,11 @@ import com.mapbox.mapboxsdk.R; /** * Bubble View for Android with custom stroke width and color, arrow size, position and direction. + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public class BubbleLayout extends LinearLayout { public static final float DEFAULT_STROKE_WIDTH = -1; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubblePopupHelper.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubblePopupHelper.java index 87b35bc7c2..055bfe5368 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubblePopupHelper.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubblePopupHelper.java @@ -9,6 +9,7 @@ import android.widget.PopupWindow; import com.mapbox.mapboxsdk.R; +@Deprecated class BubblePopupHelper { @NonNull diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Icon.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Icon.java index 752de76d5e..7ace113505 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Icon.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Icon.java @@ -10,9 +10,11 @@ import java.nio.ByteBuffer; /** * Icon is the visual representation of a Marker on a MapView. * - * @see Marker - * @see IconFactory + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public class Icon { private Bitmap mBitmap; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/IconFactory.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/IconFactory.java index b038f01c23..ae664dfe3f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/IconFactory.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/IconFactory.java @@ -28,8 +28,11 @@ import java.io.InputStream; * icon is used to display bitmaps on top of the map using {@link Marker}. * </p> * - * @see Icon + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class IconFactory { private static final String ICON_ID_PREFIX = "com.mapbox.icons.icon_"; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/InfoWindow.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/InfoWindow.java index e6c99a14c4..5bd9aaef13 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/InfoWindow.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/InfoWindow.java @@ -31,7 +31,11 @@ import java.lang.ref.WeakReference; * While either the title and * snippet are optional, at least one is required to open the info window. * </p> + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public class InfoWindow { private WeakReference<Marker> boundMarker; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java index 4ff56e1165..c26af94366 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java @@ -21,7 +21,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap; * with event listeners to bring up info windows. An {@link InfoWindow} is displayed by default when * either a title or snippet is provided. * </p> + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public class Marker extends Annotation { @Keep diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerOptions.java index f65c87d258..62c3d378e4 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerOptions.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerOptions.java @@ -20,7 +20,11 @@ import com.mapbox.mapboxsdk.geometry.LatLng; * .snippet("H St NW with 15th St NW") * .position(new LatLng(38.9002073, -77.03364419))); * </pre> + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class MarkerOptions extends BaseMarkerOptions<Marker, MarkerOptions> implements Parcelable { /** diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polygon.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polygon.java index fa6a087f7c..5f6cef8d40 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polygon.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polygon.java @@ -12,7 +12,11 @@ import java.util.List; /** * Polygon is a geometry annotation that's a closed loop of coordinates. + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class Polygon extends BasePointCollection { @Keep diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolygonOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolygonOptions.java index d6810d5a61..452420fcbd 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolygonOptions.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolygonOptions.java @@ -13,7 +13,11 @@ import java.util.List; /** * Builder for composing {@link Polygon} objects. + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class PolygonOptions implements Parcelable { public static final Parcelable.Creator<PolygonOptions> CREATOR = diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java index 41a6ef3536..76ea15215d 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java @@ -7,7 +7,11 @@ import com.mapbox.mapboxsdk.maps.MapboxMap; /** * Polyline is a geometry feature with an unclosed list of coordinates drawn as a line + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class Polyline extends BasePointCollection { @Keep diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolylineOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolylineOptions.java index 343dddcbc7..6a54f948b7 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolylineOptions.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/PolylineOptions.java @@ -12,7 +12,11 @@ import java.util.List; /** * Builder for composing {@link Polyline} objects. + * @deprecated As of 7.0.0, + * use <a href="https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation"> + * Mapbox Annotation Plugin</a> instead */ +@Deprecated public final class PolylineOptions implements Parcelable { |