I am developing an Android application trying to comply with Uncle Bob's clean architecture.
User interface has a text and a button. Button triggers a usecase (TextToSpeechUseCase) from viewmodel.
TextToSpeechUseCase uses a service/manager interface like "ITtsService" which is implemented in Frameworks & Drivers layer using Android framework dependencies.
So I need your help in two points
- Is my approach correct?
- Instead, should I implement the ITtsService in Interface Adapters layer then create another ITtsServiceSource interface within interface adapters layer, then implement the ITtsServiceSource within Frameworks&Drivers layer by using android framework dependencies?