package de.metalmatze.krautreporter.helpers;

import android.app.Application;

public class KrautreporterApplication extends Application {

    private static KrautreporterApplication instance;

    public static KrautreporterApplication get() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        instance = this;
    }
}

@@ -72,16 +72,76 @@
 ation;%0A%0A
+import io.realm.Realm;%0Aimport io.realm.RealmConfiguration;%0A%0A
 public c
@@ -196,240 +196,273 @@
 n %7B%0A
-%0A
     
-private static KrautreporterApplication instance
+@Override%0A    public void onCreate() %7B%0A        super.onCreate()
 ;%0A%0A    
+ 
-public static KrautreporterApplication get() %7B%0A        return instance;%0A    %7D%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A%0A        instance = this
+   RealmConfiguration configuration = new RealmConfiguration.Builder(this)%0A                .deleteRealmIfMigrationNeeded()%0A                .build();%0A%0A        Realm.getInstance(configuration)
 ;%0A  

Add RealmConfiguration to KrautreporterApplication