From 39370707ee0de7dbaf2efb1b22cd46d75fc40529 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Wed, 26 Feb 2020 16:17:40 +0300 Subject: [PATCH] Prepare 4.2.2 release --- CHANGELOG.md | 2 +- gradle.properties | 2 +- .../main/java/io/noties/markwon/MarkwonSpansFactory.java | 6 +++--- .../main/java/io/noties/markwon/image/AsyncDrawable.java | 2 +- .../io/noties/markwon/syntax/Prism4jSyntaxHighlight.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c719a9a..9b280a34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -# 4.2.2-SNAPSHOT +# 4.2.2 * Fixed `AsyncDrawable` display when it has placeholder with empty bounds ([#189]) * Fixed `syntax-highlight` where code input is empty string ([#192]) * Add `appendFactory`/`prependFactory` in `MarkwonSpansFactory.Builder` for more explicit `SpanFactory` ordering ([#193]) diff --git a/gradle.properties b/gradle.properties index 3e1e4325..5b0fd422 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.2-SNAPSHOT +VERSION_NAME=4.2.2 GROUP=io.noties.markwon POM_DESCRIPTION=Markwon markdown for Android diff --git a/markwon-core/src/main/java/io/noties/markwon/MarkwonSpansFactory.java b/markwon-core/src/main/java/io/noties/markwon/MarkwonSpansFactory.java index 1afb7212..43d2b1ec 100644 --- a/markwon-core/src/main/java/io/noties/markwon/MarkwonSpansFactory.java +++ b/markwon-core/src/main/java/io/noties/markwon/MarkwonSpansFactory.java @@ -39,7 +39,7 @@ public interface MarkwonSpansFactory { * {@link SpanFactory} with the specified one. * * @since 3.0.1 - * @deprecated 4.2.2-SNAPSHOT consider using {@link #appendFactory(Class, SpanFactory)} or + * @deprecated 4.2.2 consider using {@link #appendFactory(Class, SpanFactory)} or * {@link #prependFactory(Class, SpanFactory)} methods for more explicit factory ordering. * `addFactory` behaved like {@link #prependFactory(Class, SpanFactory)}, so * this method call can be replaced with it @@ -53,7 +53,7 @@ public interface MarkwonSpansFactory { * will be called after original (if present) factory. Can be used to * change behavior or original span factory. * - * @since 4.2.2-SNAPSHOT + * @since 4.2.2 */ @NonNull Builder appendFactory(@NonNull Class node, @NonNull SpanFactory factory); @@ -62,7 +62,7 @@ public interface MarkwonSpansFactory { * Prepend a factory to existing one (or make the first one for specified node). Specified factory * will be called before original (if present) factory. * - * @since 4.2.2-SNAPSHOT + * @since 4.2.2 */ @NonNull Builder prependFactory(@NonNull Class node, @NonNull SpanFactory factory); 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 36b2c3f2..d7c06409 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 @@ -194,7 +194,7 @@ public class AsyncDrawable extends Drawable { // it is very important (if we have a placeholder) to set own bounds to it (and they must not be empty // otherwise result won't be rendered) - // @since 4.2.2-SNAPSHOT + // @since 4.2.2 setBounds(placeholder.getBounds()); setResult(placeholder); diff --git a/markwon-syntax-highlight/src/main/java/io/noties/markwon/syntax/Prism4jSyntaxHighlight.java b/markwon-syntax-highlight/src/main/java/io/noties/markwon/syntax/Prism4jSyntaxHighlight.java index c6ebbd39..922d2c56 100644 --- a/markwon-syntax-highlight/src/main/java/io/noties/markwon/syntax/Prism4jSyntaxHighlight.java +++ b/markwon-syntax-highlight/src/main/java/io/noties/markwon/syntax/Prism4jSyntaxHighlight.java @@ -42,7 +42,7 @@ public class Prism4jSyntaxHighlight implements SyntaxHighlight { @Override public CharSequence highlight(@Nullable String info, @NonNull String code) { - // @since 4.2.2-SNAPSHOT + // @since 4.2.2 // although not null, but still is empty if (code.isEmpty()) { return code;