Search in sources :

Example 1 with Timber

use of timber.log.Timber in project MVPArms by JessYanCoding.

the class WEApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    mAppComponent = DaggerAppComponent.builder().appModule(//baseApplication提供
    getAppModule()).clientModule(//baseApplication提供
    getClientModule()).imageModule(//baseApplication提供
    getImageModule()).globeConfigModule(//全局配置
    getGlobeConfigModule()).serviceModule(//需自行创建
    new ServiceModule()).cacheModule(//需自行创建
    new CacheModule()).build();
    if (BuildConfig.LOG_DEBUG) {
        //Timber日志打印
        Timber.plant(new Timber.DebugTree());
    }
    //leakCanary内存泄露检查
    installLeakCanary();
}
Also used : Timber(timber.log.Timber) CacheModule(me.jessyan.mvparms.demo.di.module.CacheModule) ServiceModule(me.jessyan.mvparms.demo.di.module.ServiceModule)

Aggregations

CacheModule (me.jessyan.mvparms.demo.di.module.CacheModule)1 ServiceModule (me.jessyan.mvparms.demo.di.module.ServiceModule)1 Timber (timber.log.Timber)1