forked from upstream-mirrors/quik
Delete realm when migration necessary
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.moez.QKSMS
|
||||
|
||||
import android.app.Application
|
||||
import io.realm.Realm
|
||||
import io.realm.RealmConfiguration
|
||||
|
||||
class QKApplication : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
Realm.init(this)
|
||||
Realm.setDefaultConfiguration(RealmConfiguration.Builder()
|
||||
.deleteRealmIfMigrationNeeded()
|
||||
.build())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user