Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RealmConfiguration.Builder builder = new RealmConfiguration.Builder();
- builder.schemaVersion(SCHEMA_VERSION); // SCHEMA_VERSION = 1
- builder.migration(new Migration());
- Realm.setDefaultConfiguration(builder.build());
- Realm.getDefaultInstance().close();
- builder.schemaVersion(SCHEMA_VERSION); // SCHEMA_VERSION = 1
- DynamicRealm dynamicRealm = DynamicRealm.getInstance(Realm.getDefaultConfiguration());
- long version = dynamicRealm.getVersion();
- dynamicRealm.close();
Add Comment
Please, Sign In to add comment