mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-25 11:05:34 +00:00
2d58c725e0
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
11 lines
224 B
Kotlin
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() }
|
|
}
|