Skip to content

Commit

Permalink
Test konsist failure
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Sep 29, 2023
1 parent 06a7ada commit 8bb1d09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import net.mullvad.mullvadvpn.util.IChangelogDataProvider
import net.mullvad.mullvadvpn.viewmodel.AccountViewModel
import net.mullvad.mullvadvpn.viewmodel.ChangelogViewModel
import net.mullvad.mullvadvpn.viewmodel.ConnectViewModel
import net.mullvad.mullvadvpn.viewmodel.DeviceListViewModel
import net.mullvad.mullvadvpn.viewmodel.DeviceListViewMode
import net.mullvad.mullvadvpn.viewmodel.DeviceRevokedViewModel
import net.mullvad.mullvadvpn.viewmodel.LoginViewModel
import net.mullvad.mullvadvpn.viewmodel.OutOfTimeViewModel
Expand Down Expand Up @@ -79,7 +79,7 @@ val uiModule = module {
ChangelogViewModel(get(), BuildConfig.VERSION_CODE, BuildConfig.ALWAYS_SHOW_CHANGELOG)
}
viewModel { ConnectViewModel(get(), BuildConfig.ENABLE_IN_APP_VERSION_NOTIFICATIONS, get()) }
viewModel { DeviceListViewModel(get(), get()) }
viewModel { DeviceListViewMode(get(), get()) }
viewModel { DeviceRevokedViewModel(get(), get()) }
viewModel { LoginViewModel(get(), get()) }
viewModel { PrivacyDisclaimerViewModel(get()) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import net.mullvad.mullvadvpn.R
import net.mullvad.mullvadvpn.compose.screen.DeviceListScreen
import net.mullvad.mullvadvpn.lib.theme.AppTheme
import net.mullvad.mullvadvpn.ui.MainActivity
import net.mullvad.mullvadvpn.viewmodel.DeviceListViewModel
import net.mullvad.mullvadvpn.viewmodel.DeviceListViewMode
import org.koin.androidx.viewmodel.ext.android.viewModel

class DeviceListFragment : Fragment() {

private val deviceListViewModel by viewModel<DeviceListViewModel>()
private val deviceListViewModel by viewModel<DeviceListViewMode>()

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import net.mullvad.mullvadvpn.repository.DeviceRepository

typealias DeviceId = String

class DeviceListViewModel(
class DeviceListViewMode(
private val deviceRepository: DeviceRepository,
private val resources: Resources,
private val dispatcher: CoroutineDispatcher = Dispatchers.Default
Expand Down

0 comments on commit 8bb1d09

Please sign in to comment.