Commit c77236bf authored by Konstantin Tskhovrebov's avatar Konstantin Tskhovrebov 🤖

Remove redundant di bindings.

parent 38b4b8a9
......@@ -10,9 +10,6 @@ import ru.terrakok.gitlabclient.BuildConfig
import ru.terrakok.gitlabclient.di.*
import ru.terrakok.gitlabclient.di.provider.GsonProvider
import ru.terrakok.gitlabclient.entity.app.develop.AppInfo
import ru.terrakok.gitlabclient.model.data.storage.RawAppData
import ru.terrakok.gitlabclient.model.interactor.app.AppInfoInteractor
import ru.terrakok.gitlabclient.model.repository.app.AppInfoRepository
import ru.terrakok.gitlabclient.model.repository.session.SessionRepository
import ru.terrakok.gitlabclient.model.repository.tools.Base64Tools
import ru.terrakok.gitlabclient.model.system.AppSchedulers
......@@ -36,7 +33,6 @@ class AppModule(context: Context) : Module() {
bind(ResourceManager::class.java).singletonInScope()
bind(Base64Tools::class.java).toInstance(Base64Tools())
bind(AssetManager::class.java).toInstance(context.assets)
bind(RawAppData::class.java)
bind(SystemMessageNotifier::class.java).toInstance(SystemMessageNotifier())
bind(Gson::class.java).toProvider(GsonProvider::class.java).providesSingletonInScope()
......@@ -59,7 +55,5 @@ class AppModule(context: Context) : Module() {
BuildConfig.FEEDBACK_URL
)
)
bind(AppInfoRepository::class.java)
bind(AppInfoInteractor::class.java)
}
}
\ No newline at end of file
......@@ -13,22 +13,6 @@ import ru.terrakok.gitlabclient.entity.app.session.OAuthParams
import ru.terrakok.gitlabclient.entity.app.session.UserAccount
import ru.terrakok.gitlabclient.model.data.cache.ProjectCache
import ru.terrakok.gitlabclient.model.data.server.GitlabApi
import ru.terrakok.gitlabclient.model.data.server.MarkDownUrlResolver
import ru.terrakok.gitlabclient.model.interactor.event.EventInteractor
import ru.terrakok.gitlabclient.model.interactor.issue.IssueInteractor
import ru.terrakok.gitlabclient.model.interactor.mergerequest.MergeRequestInteractor
import ru.terrakok.gitlabclient.model.interactor.milestone.MilestoneInteractor
import ru.terrakok.gitlabclient.model.interactor.project.ProjectInteractor
import ru.terrakok.gitlabclient.model.interactor.todo.TodoInteractor
import ru.terrakok.gitlabclient.model.interactor.user.UserInteractor
import ru.terrakok.gitlabclient.model.repository.event.EventRepository
import ru.terrakok.gitlabclient.model.repository.issue.IssueRepository
import ru.terrakok.gitlabclient.model.repository.mergerequest.MergeRequestRepository
import ru.terrakok.gitlabclient.model.repository.milestone.MilestoneRepository
import ru.terrakok.gitlabclient.model.repository.profile.ProfileRepository
import ru.terrakok.gitlabclient.model.repository.project.ProjectRepository
import ru.terrakok.gitlabclient.model.repository.todo.TodoRepository
import ru.terrakok.gitlabclient.model.repository.user.UserRepository
import ru.terrakok.gitlabclient.presentation.global.ErrorHandler
import ru.terrakok.gitlabclient.presentation.global.MarkDownConverter
import toothpick.config.Module
......@@ -56,7 +40,6 @@ class ServerModule(userAccount: UserAccount?) : Module() {
bind(ProjectCache::class.java).singletonInScope()
bind(GitlabApi::class.java).toProvider(ApiProvider::class.java).providesSingletonInScope()
bind(MarkDownConverter::class.java).toProvider(MarkDownConverterProvider::class.java).providesSingletonInScope()
bind(MarkDownUrlResolver::class.java)
//Auth
bind(OAuthParams::class.java).toInstance(
......@@ -69,36 +52,5 @@ class ServerModule(userAccount: UserAccount?) : Module() {
//Error handler with logout logic
bind(ErrorHandler::class.java).singletonInScope()
//Profile
bind(ProfileRepository::class.java)
//Project
bind(ProjectRepository::class.java)
bind(ProjectInteractor::class.java)
//Issue
bind(IssueRepository::class.java)
bind(IssueInteractor::class.java)
//Event
bind(EventRepository::class.java)
bind(EventInteractor::class.java)
//Merge request
bind(MergeRequestRepository::class.java)
bind(MergeRequestInteractor::class.java)
//Milestone
bind(MilestoneRepository::class.java)
bind(MilestoneInteractor::class.java)
//User info
bind(UserRepository::class.java)
bind(UserInteractor::class.java)
//Todos
bind(TodoRepository::class.java)
bind(TodoInteractor::class.java)
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment