Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package id.co.rumahcoding.neardeal
- import android.app.Application
- import io.realm.Realm
- import io.realm.RealmConfiguration
- /**
- * Created by ahmad s on 2019-10-09.
- */
- class MyApplication: Application() {
- override fun onCreate() {
- super.onCreate()
- Realm.init(this)
- val configuration = RealmConfiguration.Builder()
- .name("near.deal")
- .schemaVersion(1)
- .build()
- Realm.setDefaultConfiguration(configuration)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement