Commit b4b77114 authored by Tiago Cunha's avatar Tiago Cunha

Fixes, version bump..

parent a2a23c21
...@@ -33,8 +33,8 @@ android { ...@@ -33,8 +33,8 @@ android {
applicationId "chat.rocket.android" applicationId "chat.rocket.android"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 25
versionCode 17 versionCode 20
versionName "1.0.8" versionName "1.0.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
...@@ -16,10 +16,7 @@ public class Migration implements RealmMigration { ...@@ -16,10 +16,7 @@ public class Migration implements RealmMigration {
RealmSchema schema = dynamicRealm.getSchema(); RealmSchema schema = dynamicRealm.getSchema();
if (oldVersion == 0) { if (oldVersion == 0) {
RealmObjectSchema roomSchema = schema.get("RealmRoom"); // NOOP
roomSchema.addField("f", boolean.class);
oldVersion++; oldVersion++;
} }
......
...@@ -4,19 +4,11 @@ import android.content.Context; ...@@ -4,19 +4,11 @@ import android.content.Context;
import io.realm.Realm; import io.realm.Realm;
import io.realm.RealmConfiguration; import io.realm.RealmConfiguration;
import chat.rocket.persistence.realm.modules.RocketChatLibraryModule;
public class RocketChatPersistenceRealm { public class RocketChatPersistenceRealm {
public static void init(Context context) { public static void init(Context context) {
Realm.init(context); Realm.init(context);
Realm.setDefaultConfiguration( Realm.setDefaultConfiguration(new RealmConfiguration.Builder().build());
new RealmConfiguration.Builder()
.name("rocket.chat.persistence.realm")
.modules(new RocketChatLibraryModule())
.schemaVersion(3)
.migration(new Migration())
.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