Android-CleanArchitecture-Kotlin icon indicating copy to clipboard operation
Android-CleanArchitecture-Kotlin copied to clipboard

Question: Where to put usecase/interactor used in different modules

Open tentenponce opened this issue 7 years ago • 3 comments

For example, we have a usecase/interactor that needs to be used by other modules also:

VisitModuleUseCase - marks down the count on how many times does the feature/module is visited.

It will be use by all features (eg: movies, news feed, faqs, etc)

What folder should it go? Or should we create specific use case for each modules?

tentenponce avatar Nov 13 '18 05:11 tentenponce

A new module that is shared between the modules I think

Zhuinden avatar Nov 13 '18 08:11 Zhuinden

I have the same question. How if we put it in core/interactor module?

azisuazusa avatar Nov 20 '18 01:11 azisuazusa

@azisuazusa, from the idea of @Zhuinden, As of now, I'm currently putting it inside features/common/interactor.

tentenponce avatar Nov 20 '18 03:11 tentenponce