Prepare 4.2.1 release

This commit is contained in:
Dimitry Ivanov 2020-02-02 17:51:11 +03:00
parent ef97b0bc25
commit 34f71f13d2
5 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
# Changelog # Changelog
# 4.2.1-SNAPSHOT # 4.2.1
* Fix SpannableBuilder `subSequence` method * Fix SpannableBuilder `subSequence` method
* Introduce Nougat check in `BulletListItemSpan` to position bullet (for bullets to be * Introduce Nougat check in `BulletListItemSpan` to position bullet (for bullets to be
positioned correctly when nested inside other `LeadingMarginSpan`s) positioned correctly when nested inside other `LeadingMarginSpan`s)

View File

@ -8,7 +8,7 @@ android.enableJetifier=true
android.enableBuildCache=true android.enableBuildCache=true
android.buildCacheDir=build/pre-dex-cache android.buildCacheDir=build/pre-dex-cache
VERSION_NAME=4.2.1-SNAPSHOT VERSION_NAME=4.2.1
GROUP=io.noties.markwon GROUP=io.noties.markwon
POM_DESCRIPTION=Markwon markdown for Android POM_DESCRIPTION=Markwon markdown for Android

View File

@ -74,7 +74,7 @@ public class BulletListItemSpan implements LeadingMarginSpan {
final int l; final int l;
final int r; 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) // when nested inside other LeadingMarginSpans (sorry, Nougat)
if (IS_NOUGAT) { if (IS_NOUGAT) {

View File

@ -73,7 +73,7 @@ public class AsyncDrawable extends Drawable {
/** /**
* @see #hasKnownDimensions() * @see #hasKnownDimensions()
* @since 4.0.0 * @since 4.0.0
* @deprecated 4.2.1-SNAPSHOT * @deprecated 4.2.1
*/ */
@SuppressWarnings({"unused", "WeakerAccess"}) @SuppressWarnings({"unused", "WeakerAccess"})
@Deprecated @Deprecated
@ -82,7 +82,7 @@ public class AsyncDrawable extends Drawable {
} }
/** /**
* @since 4.2.1-SNAPSHOT * @since 4.2.1
*/ */
@SuppressWarnings({"unused", "WeakerAccess"}) @SuppressWarnings({"unused", "WeakerAccess"})
public boolean hasKnownDimensions() { public boolean hasKnownDimensions() {
@ -123,7 +123,7 @@ public class AsyncDrawable extends Drawable {
@SuppressWarnings("WeakerAccess") @SuppressWarnings("WeakerAccess")
public void setCallback2(@Nullable Callback cb) { public void setCallback2(@Nullable Callback cb) {
// @since 4.2.1-SNAPSHOT // @since 4.2.1
// wrap callback so invalidation happens to this AsyncDrawable instance // wrap callback so invalidation happens to this AsyncDrawable instance
// and not for wrapped result/placeholder // and not for wrapped result/placeholder
this.callback = cb == null this.callback = cb == null
@ -233,7 +233,7 @@ public class AsyncDrawable extends Drawable {
final Rect bounds = resolveBounds(); final Rect bounds = resolveBounds();
result.setBounds(bounds); 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 // to reduce number of invalidations
result.setCallback(callback); 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) // Wrapped callback to trigger invalidation for this AsyncDrawable instance (and not result/placeholder)
private class WrappedCallback implements Callback { private class WrappedCallback implements Callback {

View File

@ -42,7 +42,7 @@ public class AsyncDrawableSpan extends ReplacementSpan {
this.alignment = alignment; this.alignment = alignment;
this.replacementTextIsLink = replacementTextIsLink; 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 // at this point they will always be 0,0-1,1, but this
// will trigger another invalidation when we will have bounds // will trigger another invalidation when we will have bounds
} }