// Path: app/src/main/java/org/xdty/gallery/application/Application.java
// public class Application extends android.app.Application {
// 
//     private static AppComponent sAppComponent;
// 
//     @Inject
//     protected Setting mSetting;
// 
//     public static AppComponent getAppComponent() {
//         return sAppComponent;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         sAppComponent = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
//         sAppComponent.inject(this);
// 
//         if (BuildConfig.DEBUG || mSetting.isCatchCrashEnable()) {
//             CustomActivityOnCrash.install(this);
//         }
// 
//         RxJavaPlugins.setErrorHandler(Throwable::printStackTrace);
//     }
// 
// }


import org.xdty.gallery.application.Application;
import org.xdty.gallery.model.db.Server;
import java.util.List;
import javax.inject.Inject;
import io.reactivex.Observable;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.schedulers.Schedulers;
import io.requery.Persistable;
import io.requery.sql.EntityDataStore;
package org.xdty.gallery.model.database;





public class DatabaseImpl implements Database {

    @Inject
    EntityDataStore<Persistable> mDataStore;

    private CompositeDisposable mSubscriptions = new CompositeDisposable();

    public DatabaseImpl() {
// Path: app/src/main/java/org/xdty/gallery/application/Application.java
// public class Application extends android.app.Application {
// 
//     private static AppComponent sAppComponent;
// 
//     @Inject
//     protected Setting mSetting;
// 
//     public static AppComponent getAppComponent() {
//         return sAppComponent;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         sAppComponent = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
//         sAppComponent.inject(this);
// 
//         if (BuildConfig.DEBUG || mSetting.isCatchCrashEnable()) {
//             CustomActivityOnCrash.install(this);
//         }
// 
//         RxJavaPlugins.setErrorHandler(Throwable::printStackTrace);
//     }
// 
// }


// Path: app/src/main/java/org/xdty/gallery/model/database/DatabaseImpl.java
import org.xdty.gallery.application.Application;
import org.xdty.gallery.model.db.Server;
import java.util.List;
import javax.inject.Inject;
import io.reactivex.Observable;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.schedulers.Schedulers;
import io.requery.Persistable;
import io.requery.sql.EntityDataStore;

package org.xdty.gallery.model.database;





public class DatabaseImpl implements Database {

    @Inject
    EntityDataStore<Persistable> mDataStore;

    private CompositeDisposable mSubscriptions = new CompositeDisposable();

    public DatabaseImpl() {
        Application.getAppComponent().inject(this);