Skip to content

Commit

Permalink
🐛 뷰모델들 의존성 주입 방식 factory -> viewModel로 변경
Browse files Browse the repository at this point in the history
Co-authored-by: yonghanJu <[email protected]>
  • Loading branch information
soopeach and yonghanJu committed Aug 1, 2024
1 parent ae0be9d commit 1242100
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions app/src/main/java/com/whyranoid/walkie/KoinModules.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,30 @@ import okhttp3.OkHttpClient
import okhttp3.Response
import okhttp3.logging.HttpLoggingInterceptor
import org.koin.android.ext.koin.androidContext
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit

val viewModelModule =
module {
factory { ChallengeMainViewModel(get(), get(), get(), get(), get()) }
factory { ChallengeDetailViewModel(get(), get()) }
factory { ChallengeExitViewModel(get(), get()) }
factory { UserPageViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get()) }
factory { RunningViewModel(get(), get(), get(), get(), get(), get()) }
factory { RunningEditViewModel() }
factory { SplashViewModel(get()) }
factory { SignInViewModel(get()) }
factory { SelectHistoryViewModel(get()) }
factory { EditProfileViewModel(get()) }
factory { AddPostViewModel(get()) }
factory { SearchFriendViewModel(get(), get(), get()) }
factory { DialogViewModel(get(), get(), get(), get(), get(), get()) }
factory { CommunityScreenViewModel(get(), get(), get()) }
factory { FollowingViewModel(get(), get(), get(), get(), get(), get()) }
factory { SettingViewModel(get(), get()) }
viewModel { ChallengeMainViewModel(get(), get(), get(), get(), get()) }
viewModel { ChallengeDetailViewModel(get(), get()) }
viewModel { ChallengeExitViewModel(get(), get()) }
viewModel { UserPageViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { RunningViewModel(get(), get(), get(), get(), get(), get()) }
viewModel { RunningEditViewModel() }
viewModel { SplashViewModel(get()) }
viewModel { SignInViewModel(get()) }
viewModel { SelectHistoryViewModel(get()) }
viewModel { EditProfileViewModel(get()) }
viewModel { AddPostViewModel(get()) }
viewModel { SearchFriendViewModel(get(), get(), get()) }
viewModel { DialogViewModel(get(), get(), get(), get(), get(), get()) }
viewModel { CommunityScreenViewModel(get(), get(), get()) }
viewModel { FollowingViewModel(get(), get(), get(), get(), get(), get()) }
viewModel { SettingViewModel(get(), get()) }
}

val repositoryModule =
Expand Down

0 comments on commit 1242100

Please sign in to comment.