I have two queries regarding clean architecture, which you describe in this story.
- Let say if I have class ”X” in library and there is method Logout() to logout in that class. Now If I have to call this method should I call this method in Activity(UI ) itself or create a use case and then route from UI ->ViewModel->Usecase -> Repository and call repository method.
- Another query is about screen with static data like splash screen, terms and condition screen with static data. can we start these screen directly from activity or route from UI ->ViewModel->Usecase -> Repository.
Let me know your opinion on above two queries.