add base room implementation

This commit is contained in:
Carlos Martinez
2020-02-02 14:03:11 -03:00
parent 46be4aca10
commit 14e9eff325
10 changed files with 50 additions and 6 deletions

View File

@@ -45,4 +45,5 @@ android {
dependencies {
implementation project(":base")
implementation project(":userlist")
}

View File

@@ -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" />

View File

@@ -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
)
)
}
}
}

View File

@@ -1,4 +1,4 @@
package com.hako.friendlists.home
package com.hako.friendlists.view
import androidx.appcompat.app.AppCompatActivity