Commit b4b77114 authored by Tiago Cunha's avatar Tiago Cunha

Fixes, version bump..

parent a2a23c21
......@@ -33,8 +33,8 @@ android {
applicationId "chat.rocket.android"
minSdkVersion 16
targetSdkVersion 25
versionCode 17
versionName "1.0.8"
versionCode 20
versionName "1.0.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
......
......@@ -16,10 +16,7 @@ public class Migration implements RealmMigration {
RealmSchema schema = dynamicRealm.getSchema();
if (oldVersion == 0) {
RealmObjectSchema roomSchema = schema.get("RealmRoom");
roomSchema.addField("f", boolean.class);
// NOOP
oldVersion++;
}
......
......@@ -4,19 +4,11 @@ import android.content.Context;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import chat.rocket.persistence.realm.modules.RocketChatLibraryModule;
public class RocketChatPersistenceRealm {
public static void init(Context context) {
Realm.init(context);
Realm.setDefaultConfiguration(
new RealmConfiguration.Builder()
.name("rocket.chat.persistence.realm")
.modules(new RocketChatLibraryModule())
.schemaVersion(3)
.migration(new Migration())
.build());
Realm.setDefaultConfiguration(new RealmConfiguration.Builder().build());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment