Android clean architecture with ViewModel, UseCases and Repositories: Part 1
Antoni Castejón García
1K9

Hi,

I have two queries regarding clean architecture, which you describe in this story.

  1. 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.
  2. 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.