Prepare 4.2.2 release

This commit is contained in:
Dimitry Ivanov 2020-02-26 16:17:40 +03:00
parent 976dfa3162
commit 39370707ee
5 changed files with 7 additions and 7 deletions

View File

@ -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])

View File

@ -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

View File

@ -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 <strong>after</strong> original (if present) factory. Can be used to
* <em>change</em> behavior or original span factory.
*
* @since 4.2.2-SNAPSHOT
* @since 4.2.2
*/
@NonNull
<N extends Node> Builder appendFactory(@NonNull Class<N> 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 <string>before</string> original (if present) factory.
*
* @since 4.2.2-SNAPSHOT
* @since 4.2.2
*/
@NonNull
<N extends Node> Builder prependFactory(@NonNull Class<N> node, @NonNull SpanFactory factory);

View File

@ -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);

View File

@ -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;