Removed deprecated methods and fields
Fields count - 2
Methods count - 20
MODIFY
iconics-view-library/src/main/java/com/mikepenz/iconics/view/IconicsImageView.java
iconics-view-library/src/main/java/com/mikepenz/iconics/view/IconicsImageView.java
@@ -17,9 +17,6 @@ package com.mikepenz.iconics.view;
import android.content.Context;
import android.content.res.TypedArray;
-import android.support.annotation.ColorInt;
-import android.support.annotation.ColorRes;
-import android.support.annotation.DimenRes;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.v7.widget.AppCompatImageView;
@@ -28,7 +25,6 @@ import android.util.AttributeSet;
import com.mikepenz.iconics.IconicsDrawable;
import com.mikepenz.iconics.internal.IconicsView;
import com.mikepenz.iconics.internal.IconicsViewsAttrsReader;
-import com.mikepenz.iconics.typeface.IIcon;
import static android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP;
@@ -74,172 +70,6 @@ public class IconicsImageView extends AppCompatImageView implements IconicsView
setImageDrawable(mIcon = icon);
}
- //region deprecated methods
- /**
- * @deprecated use {@link IconicsDrawable#icon(Character) getIcon().icon(Character)} instead
- * */
- @Deprecated
- public void setIcon(Character icon) {
- if (mIcon != null) {
- mIcon.icon(icon);
- } else {
- setIcon(new IconicsDrawable(getContext(), icon));
- }
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#icon(String) getIcon().icon(String)} instead
- * */
- @Deprecated
- public void setIcon(String icon) {
- if (mIcon != null) {
- mIcon.icon(icon);
- } else {
- setIcon(new IconicsDrawable(getContext(), icon));
- }
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#icon(IIcon) getIcon().icon(IIcon)} instead
- * */
- @Deprecated
- public void setIcon(IIcon icon) {
- if (mIcon != null) {
- mIcon.icon(icon);
- } else {
- setIcon(new IconicsDrawable(getContext(), icon));
- }
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#iconText(String) getIcon().iconText(String)} instead
- * */
- @Deprecated
- public void setIconText(String iconText) {
- setIcon(new IconicsDrawable(getContext()).iconText(iconText));
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#color(int) getIcon().color(@ColorInt int)} instead
- * */
- @Deprecated
- public void setColor(@ColorInt int color) {
- mIcon.color(color);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#colorRes(int) getIcon().colorRes(@ColorRes int)} instead
- * */
- @Deprecated
- public void setColorRes(@ColorRes int colorRes) {
- mIcon.colorRes(colorRes);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#paddingPx(int) getIcon().paddingPx(int)} instead
- * */
- @Deprecated
- public void setPaddingPx(int padding) {
- mIcon.paddingPx(padding);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#paddingDp(int) getIcon().paddingDp(int)} instead
- * */
- @Deprecated
- public void setPaddingDp(int paddingDp) {
- mIcon.paddingDp(paddingDp);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#paddingRes(int)} getIcon().paddingRes(@DimenRes int)} instead
- * */
- @Deprecated
- public void setPaddingRes(@DimenRes int paddingRes) {
- mIcon.paddingRes(paddingRes);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#contourColor(int) getIcon().contourColor(@ColorInt int)} instead
- * */
- @Deprecated
- public void setContourColor(@ColorInt int color) {
- mIcon.contourColor(color);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#contourColorRes(int) getIcon().contourColorRes(@ColorRes int)} instead
- * */
- @Deprecated
- public void setContourColorRes(@ColorRes int colorRes) {
- mIcon.contourColorRes(colorRes);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#contourWidthPx(int) getIcon().contourWidthPx(int)} instead
- * */
- @Deprecated
- public void setContourWidthPx(int contourWidth) {
- mIcon.contourWidthPx(contourWidth);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#contourWidthDp(int) getIcon().contourWidthDp(int)} instead
- * */
- @Deprecated
- public void setContourWidthDp(int contourWidthDp) {
- mIcon.contourWidthDp(contourWidthDp);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#contourWidthRes(int) getIcon().contourWidthRes(@DimenRes int)} instead
- * */
- @Deprecated
- public void setContourWidthRes(@DimenRes int contourWidthRes) {
- mIcon.contourWidthRes(contourWidthRes);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#backgroundColor(int) getIcon().backgroundColor(@ColorInt int) instead
- * */
- @Deprecated
- public void setBackgroundColor(@ColorInt int color) {
- mIcon.backgroundColor(color);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#backgroundColorRes(int) getIcon().backgroundColorRes(@ColorRes int)} instead
- * */
- @Deprecated
- public void setBackgroundColorRes(@ColorRes int colorRes) {
- mIcon.backgroundColorRes(colorRes);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#roundedCornersPx(int) getIcon()roundedCornersPx(int)} instead
- * */
- @Deprecated
- public void setRoundedCornersPx(int cornerRadius) {
- mIcon.roundedCornersPx(cornerRadius);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#roundedCornersDp(int) getIcon().roundedCornersDp(int)} instead
- * */
- @Deprecated
- public void setRoundedCornersDp(int cornerRadiusDp) {
- mIcon.roundedCornersDp(cornerRadiusDp);
- }
-
- /**
- * @deprecated use {@link IconicsDrawable#roundedCornersRes(int) getIcon().roundedCornersRes(@DimenRes int)} instead
- * */
- @Deprecated
- public void setRoundedCornersRes(@DimenRes int cornerRadiusRes) {
- mIcon.roundedCornersRes(cornerRadiusRes);
- }
- //endregion
-
public IconicsDrawable getIcon() {
if (getDrawable() instanceof IconicsDrawable) {
return ((IconicsDrawable) getDrawable());

MODIFY
library-core/src/main/java/com/mikepenz/iconics/IconicsDrawable.java
library-core/src/main/java/com/mikepenz/iconics/IconicsDrawable.java
@@ -80,18 +80,6 @@ public class IconicsDrawable extends Drawable {
@Dimension(unit = DP)
public static final int TOOLBAR_ICON_PADDING = 1;
- /**
- * @deprecated use {@link #TOOLBAR_ICON_SIZE} instead
- */
- @Deprecated
- public static final int ANDROID_ACTIONBAR_ICON_SIZE_DP = TOOLBAR_ICON_SIZE;
-
- /**
- * @deprecated use {@link #TOOLBAR_ICON_PADDING} instead
- */
- @Deprecated
- public static final int ANDROID_ACTIONBAR_ICON_SIZE_PADDING_DP = TOOLBAR_ICON_PADDING;
-
private Context mContext;
private int mSizeX = -1;
@@ -547,17 +535,6 @@ public class IconicsDrawable extends Drawable {
return this;
}
- /**
- * Set the size of this icon to the standard Android ActionBar.
- *
- * @return The current IconExtDrawable for chaining.
- * @deprecated use actionBar() instead
- */
- @Deprecated
- public IconicsDrawable actionBarSize() {
- return sizeDp(TOOLBAR_ICON_SIZE);
- }
-
/**
* Sets the size and the Padding to the correct values to be used for the actionBar / toolBar
*

MODIFY
library-core/src/main/java/com/mikepenz/iconics/utils/GenericsUtil.java
library-core/src/main/java/com/mikepenz/iconics/utils/GenericsUtil.java
@@ -50,7 +50,7 @@ public class GenericsUtil {
* @return a String[] with the string ids we need
*/
private static String[] getDefinedFonts(Context ctx, Field[] fields) {
- ArrayList<String> fieldArray = new ArrayList<String>();
+ ArrayList<String> fieldArray = new ArrayList<>();
for (Field field : fields) {
if (field.getName().contains("define_font_")) {
fieldArray.add(getStringResourceByName(ctx, field.getName()));

- Removed deprecated methods and fields
  Fields count - 2
  Methods count - 20