我想在android中从非加密迁移到加密的Realm。如何实施?
e.g。来自
RealmConfiguration config = new RealmConfiguration
.Builder()
.schemaVersion(0)
.migration(new Migration())
.build();
Realm.setDefaultConfiguration(config);
到
RealmConfiguration config = new RealmConfiguration
.Builder()
.schemaVersion(1)
.encryptionKey(some64ByteKey())
.migration(new Migration())
.build();
Realm.setDefaultConfiguration(config);