package com.topjohnwu.magisk.di import android.content.Context import androidx.preference.PreferenceManager import com.skoumal.teanity.rxbus.RxBus import com.topjohnwu.magisk.App import org.koin.dsl.module val applicationModule = module { single { RxBus() } factory { get().resources } factory { get() as App } factory { get().packageManager } factory(Protected) { get().protectedContext } single(SUTimeout) { get(Protected).getSharedPreferences("su_timeout", 0) } single { PreferenceManager.getDefaultSharedPreferences(get(Protected)) } }