Coverage Summary for Class: AppKt (com.javiersc.kaari.samples.android)
Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
AppKt |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/8)
|
AppKt$appModule$1 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/3)
|
AppKt$appModule$1$1 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
Total |
0%
(0/3)
|
|
0%
(0/3)
|
0%
(0/13)
|
package com.javiersc.kaari.samples.android
import android.app.Application
import com.javiersc.samples.features._di.presentationModule
import com.javiersc.samples.strategies.di.strategiesAndroidModule
import com.javiersc.samples.strategies.di.strategiesModule
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.GlobalContext.startKoin
import org.koin.dsl.module
class App : Application() {
override fun onCreate() {
super.onCreate()
startKoin {
androidContext(this@App)
modules(appModule)
modules(strategiesModule)
modules(strategiesAndroidModule)
modules(presentationModule)
}
}
}
val appModule = module { single<CoroutineContext> { EmptyCoroutineContext } }