Search in sources :

Example 1 with DefaultDataTransaction

use of com.secupwn.aimsicd.data.DefaultDataTransaction in project Android-IMSI-Catcher-Detector by CellularPrivacy.

the class AndroidIMSICatcherDetector method onCreate.

@Override
public void onCreate() {
    UncaughtExceptionLogger.init();
    instance = new WeakReference<>(this);
    addModule(new AndroidLoggerModule());
    addModule(OkHttpModule.withCache(this));
    super.onCreate();
    RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this).deleteRealmIfMigrationNeeded().initialData(new DefaultDataTransaction()).build();
    Realm.setDefaultConfiguration(realmConfiguration);
    TinyDB.getInstance().init(getApplicationContext());
    TinyDB.getInstance().putBoolean(TinyDbKeys.FINISHED_LOAD_IN_MAP, true);
}
Also used : RealmConfiguration(io.realm.RealmConfiguration) DefaultDataTransaction(com.secupwn.aimsicd.data.DefaultDataTransaction) AndroidLoggerModule(io.freefair.android.injection.modules.AndroidLoggerModule)

Aggregations

DefaultDataTransaction (com.secupwn.aimsicd.data.DefaultDataTransaction)1 AndroidLoggerModule (io.freefair.android.injection.modules.AndroidLoggerModule)1 RealmConfiguration (io.realm.RealmConfiguration)1