// Path: app/src/main/java/com/hotbitmapgg/leisureread/app/AppComponent.java
// @Singleton
// @Component(modules = AppModule.class)
// public interface AppComponent {
// 
//   Context context();
// 
//   void inject(LeisureReadApp mApplication);
// }
// 
// Path: app/src/main/java/com/hotbitmapgg/leisureread/app/AppModule.java
// @Module
// public class AppModule {
// 
//   private final LeisureReadApp mApplication;
// 
// 
//   public AppModule(LeisureReadApp mApplication) {
// 
//     this.mApplication = mApplication;
//   }
// 
// 
//   @Provides
//   @Singleton
//   Context provideApplicationContext() {
// 
//     return mApplication;
//   }
// }


import com.hotbitmapgg.leisureread.app.AppComponent;
import com.hotbitmapgg.leisureread.app.AppModule;
import com.hotbitmapgg.leisureread.app.DaggerAppComponent;
import com.hotbitmapgg.rxzhihu.R;
import com.squareup.leakcanary.LeakCanary;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
import android.app.Application;

  }


  /**
   * 初始化Realm数据库配置
   */
  private void initRealm() {

    Realm.setDefaultConfiguration(new RealmConfiguration.Builder(this)
        .deleteRealmIfMigrationNeeded()
        .schemaVersion(1)
        .build());
  }


  /**
   * 初始化LeakCanary内存泄漏检测
   */
  private void initLeakCanary() {

    LeakCanary.install(this);
  }


  /**
   * 初始化组件
   */
  private void initAppComPonent() {

    mAppComponent = DaggerAppComponent.builder()

// Path: app/src/main/java/com/hotbitmapgg/leisureread/app/AppComponent.java
// @Singleton
// @Component(modules = AppModule.class)
// public interface AppComponent {
// 
//   Context context();
// 
//   void inject(LeisureReadApp mApplication);
// }
// 
// Path: app/src/main/java/com/hotbitmapgg/leisureread/app/AppModule.java
// @Module
// public class AppModule {
// 
//   private final LeisureReadApp mApplication;
// 
// 
//   public AppModule(LeisureReadApp mApplication) {
// 
//     this.mApplication = mApplication;
//   }
// 
// 
//   @Provides
//   @Singleton
//   Context provideApplicationContext() {
// 
//     return mApplication;
//   }
// }


// Path: app/src/main/java/com/hotbitmapgg/leisureread/LeisureReadApp.java
import com.hotbitmapgg.leisureread.app.AppComponent;
import com.hotbitmapgg.leisureread.app.AppModule;
import com.hotbitmapgg.leisureread.app.DaggerAppComponent;
import com.hotbitmapgg.rxzhihu.R;
import com.squareup.leakcanary.LeakCanary;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
import android.app.Application;

  }


  /**
   * 初始化Realm数据库配置
   */
  private void initRealm() {

    Realm.setDefaultConfiguration(new RealmConfiguration.Builder(this)
        .deleteRealmIfMigrationNeeded()
        .schemaVersion(1)
        .build());
  }


  /**
   * 初始化LeakCanary内存泄漏检测
   */
  private void initLeakCanary() {

    LeakCanary.install(this);
  }


  /**
   * 初始化组件
   */
  private void initAppComPonent() {

    mAppComponent = DaggerAppComponent.builder()

        .appModule(new AppModule(this))
