Glide : add okhhtp integration and hide logs

This commit is contained in:
ganfra 2019-02-01 12:32:07 +01:00
parent 56af92d759
commit 68b9ba7b99
2 changed files with 17 additions and 3 deletions

View File

@ -53,6 +53,7 @@ dependencies {

def epoxy_version = "3.0.0"
def arrow_version = "0.8.2"
def glide_version = "4.8.0"

implementation project(":matrix-sdk-android")
implementation project(":matrix-sdk-android-rx")
@ -84,8 +85,10 @@ dependencies {
implementation "io.arrow-kt:arrow-core:$arrow_version"

// UI
implementation 'com.github.bumptech.glide:glide:4.8.0'
kapt 'com.github.bumptech.glide:compiler:4.8.0'
implementation "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"

implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha02'


View File

@ -16,8 +16,19 @@

package im.vector.riotredesign.core.glide;

import android.content.Context;
import android.util.Log;

import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;

@GlideModule
public final class MyAppGlideModule extends AppGlideModule {}
public final class MyAppGlideModule extends AppGlideModule {

@Override
public void applyOptions(Context context, GlideBuilder builder) {
builder.setLogLevel(Log.ERROR);
}

}