Update markwon

This commit is contained in:
Jannis Mattheis
2019-11-28 21:41:46 +01:00
parent 7bc34df352
commit d9113a8a95
2 changed files with 10 additions and 11 deletions

View File

@@ -49,9 +49,10 @@ dependencies {
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
implementation 'com.hypertrack:hyperlog:0.0.10'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'ru.noties.markwon:core:3.0.0'
implementation 'ru.noties.markwon:image-gif:3.0.0'
implementation 'ru.noties.markwon:ext-tables:3.0.0'
implementation 'io.noties.markwon:core:4.2.0'
implementation 'io.noties.markwon:image-picasso:4.2.0'
implementation 'io.noties.markwon:image:4.2.0'
implementation 'io.noties.markwon:ext-tables:4.2.0'
}
configurations {

View File

@@ -18,13 +18,12 @@ import com.github.gotify.Utils;
import com.github.gotify.client.model.Message;
import com.github.gotify.messages.provider.MessageWithImage;
import com.squareup.picasso.Picasso;
import io.noties.markwon.Markwon;
import io.noties.markwon.core.CorePlugin;
import io.noties.markwon.ext.tables.TablePlugin;
import io.noties.markwon.image.picasso.PicassoImagesPlugin;
import io.noties.markwon.movement.MovementMethodPlugin;
import java.util.List;
import ru.noties.markwon.Markwon;
import ru.noties.markwon.core.CorePlugin;
import ru.noties.markwon.ext.tables.TablePlugin;
import ru.noties.markwon.image.ImagesPlugin;
import ru.noties.markwon.image.gif.GifPlugin;
import ru.noties.markwon.movement.MovementMethodPlugin;
public class ListMessageAdapter extends BaseAdapter {
@@ -52,9 +51,8 @@ public class ListMessageAdapter extends BaseAdapter {
Markwon.builder(context)
.usePlugin(CorePlugin.create())
.usePlugin(MovementMethodPlugin.create())
.usePlugin(ImagesPlugin.create(context))
.usePlugin(PicassoImagesPlugin.create(picasso))
.usePlugin(TablePlugin.create(context))
.usePlugin(GifPlugin.create())
.build();
}