Magisk/app/src/main/java/com/topjohnwu/magisk/di/ApplicationModule.kt

14 lines
299 B
Kotlin
Raw Normal View History

package com.topjohnwu.magisk.di
import android.content.Context
import com.skoumal.teanity.rxbus.RxBus
import com.topjohnwu.magisk.App
import org.koin.dsl.module
val applicationModule = module {
single { RxBus() }
single { get<Context>().resources }
single { get<Context>() as App }
}