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

15 lines
344 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 }
single { get<Context>().packageManager }
}