问题
I've been learning clean architecture with refrence to this-sample and some others, with which I just created a base module, such that all the modules in my project must be implementing it. Here I keep all the Utility classes as well. It helped me a lot to be lazy on basic project setup for dagger, retrofit, etc. I thus got faster easy way on diving into the clean-architecture with feature-based modules.
I've managed my project files in this manner.
The main problem I faced with this structure is to add http-interceptor which handles token response that is visible by only featureauth and featureauth-core. I need the interceptor written here to be added on the retrofit instance provided by base-module to all the modules used in project. P.S I tried circular dependencies in base and featureauth module that gave myself a pretty good smile.
I also want the interceptor to bring out an ERROR-VIEW in the screen without any activity-context [may use application-context] where if I click on retry, starts from the same point it was stopped by error as in functional programming.
来源:https://stackoverflow.com/questions/61489261/retrofit-interceptor-on-different-module-in-feature-based-clean-architecture-and