Skip to content

Commit

Permalink
change imports (old import is now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 18, 2024
1 parent be6bccd commit 905efad
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package de.westnordost.streetcomplete.screens.about

import de.westnordost.streetcomplete.screens.about.logs.LogsViewModel
import de.westnordost.streetcomplete.screens.about.logs.LogsViewModelImpl
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.module.dsl.viewModel
import org.koin.dsl.module

val aboutScreenModule = module {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import de.westnordost.streetcomplete.data.location.RecentLocationStore
import de.westnordost.streetcomplete.screens.main.edithistory.EditHistoryViewModel
import de.westnordost.streetcomplete.screens.main.edithistory.EditHistoryViewModelImpl
import de.westnordost.streetcomplete.util.location.LocationAvailabilityReceiver
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.module.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import de.westnordost.streetcomplete.screens.settings.quest_presets.QuestPresets
import de.westnordost.streetcomplete.screens.settings.quest_presets.QuestPresetsViewModelImpl
import de.westnordost.streetcomplete.screens.settings.quest_selection.QuestSelectionViewModel
import de.westnordost.streetcomplete.screens.settings.quest_selection.QuestSelectionViewModelImpl
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.module.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ import de.westnordost.streetcomplete.screens.user.login.LoginViewModel
import de.westnordost.streetcomplete.screens.user.login.LoginViewModelImpl
import de.westnordost.streetcomplete.screens.user.profile.ProfileViewModel
import de.westnordost.streetcomplete.screens.user.profile.ProfileViewModelImpl
import org.koin.core.module.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module

val userScreenModule = module {
factory<ProfileViewModel> { ProfileViewModelImpl(
viewModel<ProfileViewModel> { ProfileViewModelImpl(
get(), get(), get(), get(), get(), get(), get(named("AvatarsCacheDirectory"))
) }

factory<LoginViewModel> { LoginViewModelImpl(get(), get(), get()) }
viewModel<LoginViewModel> { LoginViewModelImpl(get(), get(), get()) }

factory<EditStatisticsViewModel> { EditStatisticsViewModelImpl(get(), get(), get()) }
viewModel<EditStatisticsViewModel> { EditStatisticsViewModelImpl(get(), get(), get()) }

factory<LinksViewModel> { LinksViewModelImpl(get(), get()) }
viewModel<LinksViewModel> { LinksViewModelImpl(get(), get()) }

factory<AchievementsViewModel> { AchievementsViewModelImpl(get(), get()) }
viewModel<AchievementsViewModel> { AchievementsViewModelImpl(get(), get()) }

factory<UserViewModel> { UserViewModelImpl(get()) }
viewModel<UserViewModel> { UserViewModelImpl(get()) }
}

0 comments on commit 905efad

Please sign in to comment.