Advertisement
ahsai001

android-intermediate-day4-task10x

Oct 9th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.50 KB | None | 0 0
  1. package id.co.rumahcoding.neardeal
  2.  
  3. import android.app.Application
  4. import io.realm.Realm
  5. import io.realm.RealmConfiguration
  6.  
  7. /**
  8.  * Created by ahmad s on 2019-10-09.
  9.  */
  10. class MyApplication: Application() {
  11.     override fun onCreate() {
  12.         super.onCreate()
  13.  
  14.         Realm.init(this)
  15.         val configuration = RealmConfiguration.Builder()
  16.             .name("near.deal")
  17.             .schemaVersion(1)
  18.             .build()
  19.         Realm.setDefaultConfiguration(configuration)
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement