diff --git a/CHANGELOG.md b/CHANGELOG.md index ecce3fae..405beaaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -# 4.2.1-SNAPSHOT +# 4.2.1 * Fix SpannableBuilder `subSequence` method * Introduce Nougat check in `BulletListItemSpan` to position bullet (for bullets to be positioned correctly when nested inside other `LeadingMarginSpan`s) diff --git a/gradle.properties b/gradle.properties index f0fee2c1..b0b8871f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ android.enableJetifier=true android.enableBuildCache=true android.buildCacheDir=build/pre-dex-cache -VERSION_NAME=4.2.1-SNAPSHOT +VERSION_NAME=4.2.1 GROUP=io.noties.markwon POM_DESCRIPTION=Markwon markdown for Android diff --git a/markwon-core/src/main/java/io/noties/markwon/core/spans/BulletListItemSpan.java b/markwon-core/src/main/java/io/noties/markwon/core/spans/BulletListItemSpan.java index fa366b53..c548ab66 100644 --- a/markwon-core/src/main/java/io/noties/markwon/core/spans/BulletListItemSpan.java +++ b/markwon-core/src/main/java/io/noties/markwon/core/spans/BulletListItemSpan.java @@ -74,7 +74,7 @@ public class BulletListItemSpan implements LeadingMarginSpan { final int l; final int r; { - // @since 4.2.1-SNAPSHOT to correctly position bullet + // @since 4.2.1 to correctly position bullet // when nested inside other LeadingMarginSpans (sorry, Nougat) if (IS_NOUGAT) { diff --git a/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawable.java b/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawable.java index 291b77c9..ce6f92d5 100644 --- a/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawable.java +++ b/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawable.java @@ -73,7 +73,7 @@ public class AsyncDrawable extends Drawable { /** * @see #hasKnownDimensions() * @since 4.0.0 - * @deprecated 4.2.1-SNAPSHOT + * @deprecated 4.2.1 */ @SuppressWarnings({"unused", "WeakerAccess"}) @Deprecated @@ -82,7 +82,7 @@ public class AsyncDrawable extends Drawable { } /** - * @since 4.2.1-SNAPSHOT + * @since 4.2.1 */ @SuppressWarnings({"unused", "WeakerAccess"}) public boolean hasKnownDimensions() { @@ -123,7 +123,7 @@ public class AsyncDrawable extends Drawable { @SuppressWarnings("WeakerAccess") public void setCallback2(@Nullable Callback cb) { - // @since 4.2.1-SNAPSHOT + // @since 4.2.1 // wrap callback so invalidation happens to this AsyncDrawable instance // and not for wrapped result/placeholder this.callback = cb == null @@ -233,7 +233,7 @@ public class AsyncDrawable extends Drawable { final Rect bounds = resolveBounds(); result.setBounds(bounds); - // @since 4.2.1-SNAPSHOT, we set callback after bounds are resolved + // @since 4.2.1, we set callback after bounds are resolved // to reduce number of invalidations result.setCallback(callback); @@ -333,7 +333,7 @@ public class AsyncDrawable extends Drawable { '}'; } - // @since 4.2.1-SNAPSHOT + // @since 4.2.1 // Wrapped callback to trigger invalidation for this AsyncDrawable instance (and not result/placeholder) private class WrappedCallback implements Callback { diff --git a/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawableSpan.java b/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawableSpan.java index 7c979e23..915adf8d 100644 --- a/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawableSpan.java +++ b/markwon-core/src/main/java/io/noties/markwon/image/AsyncDrawableSpan.java @@ -42,7 +42,7 @@ public class AsyncDrawableSpan extends ReplacementSpan { this.alignment = alignment; this.replacementTextIsLink = replacementTextIsLink; - // @since 4.2.1-SNAPSHOT we do not set intrinsic bounds + // @since 4.2.1 we do not set intrinsic bounds // at this point they will always be 0,0-1,1, but this // will trigger another invalidation when we will have bounds }