Magisk/app/src/main/java/com/topjohnwu/magisk/di/ViewModelsModule.kt
Viktor De Pasquale 2d58c725e0 Added koin, databinding and navigation components
Converted App class and Main activity to Kotlin. With that refactored fields within App class to allow lazy initialization

BEWARE: at this point the navigation is very much broken, won't let you anywhere beyond home screen
2019-04-11 20:01:49 +02:00

11 lines
224 B
Kotlin

package com.topjohnwu.magisk.di
import com.topjohnwu.magisk.ui.MainViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val viewModelModules = module {
viewModel { MainViewModel() }
}