Search in sources :

Example 1 with RealmModul

use of ch.hsr.sa.radiotour.dataaccess.RealmModul in project app by TourLive.

the class ImportFragment method setDataToDemo.

private void setDataToDemo() throws IOException {
    RealmConfiguration config = new RealmConfiguration.Builder().name(DEMOREALM).deleteRealmIfMigrationNeeded().modules(new RealmModul()).build();
    RadioTourApplication.setInstance(config);
}
Also used : RealmModul(ch.hsr.sa.radiotour.dataaccess.RealmModul) RealmConfiguration(io.realm.RealmConfiguration)

Example 2 with RealmModul

use of ch.hsr.sa.radiotour.dataaccess.RealmModul in project app by TourLive.

the class ImportFragment method resetDataToImport.

private void resetDataToImport() throws IOException {
    RealmConfiguration config = new RealmConfiguration.Builder().name(REALREAM).deleteRealmIfMigrationNeeded().modules(new RealmModul()).build();
    RadioTourApplication.setInstance(config);
}
Also used : RealmModul(ch.hsr.sa.radiotour.dataaccess.RealmModul) RealmConfiguration(io.realm.RealmConfiguration)

Aggregations

RealmModul (ch.hsr.sa.radiotour.dataaccess.RealmModul)2 RealmConfiguration (io.realm.RealmConfiguration)2