Search in sources :

Example 1 with ImageConfig

use of com.ljy.devring.image.support.ImageConfig in project DevRing by LJYcoder.

the class ConfigModule method imageConfig.

@Provides
@Singleton
ImageConfig imageConfig() {
    ImageConfig imageConfig = new ImageConfig();
    // 默认使用okhttp3替换网络组件
    imageConfig.setIsUseOkhttp(true);
    return imageConfig;
}
Also used : ImageConfig(com.ljy.devring.image.support.ImageConfig) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

ImageConfig (com.ljy.devring.image.support.ImageConfig)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1