mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 10:56:54 -04:00
add base room implementation
This commit is contained in:
@@ -1,7 +1,32 @@
|
||||
package com.hako.friendlists
|
||||
|
||||
import android.app.Application
|
||||
import com.hako.base.di.baseModule
|
||||
import org.koin.android.ext.koin.androidContext
|
||||
import org.koin.core.context.startKoin
|
||||
import timber.log.Timber
|
||||
|
||||
@Suppress("unused")
|
||||
class MainApplication : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
setupLogger()
|
||||
setupDi()
|
||||
}
|
||||
|
||||
private fun setupLogger() {
|
||||
Timber.plant(Timber.DebugTree())
|
||||
}
|
||||
|
||||
private fun setupDi() {
|
||||
startKoin {
|
||||
androidContext(this@MainApplication)
|
||||
|
||||
modules(
|
||||
listOf(
|
||||
baseModule
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.hako.friendlists.home
|
||||
package com.hako.friendlists.view
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user