mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 02:46:54 -04:00
add base room implementation
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity
|
||||
android:name=".home.HomeActivity"
|
||||
android:name=".view.HomeActivity"
|
||||
android:screenOrientation="portrait">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -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