i am developing an android application trying to comply with Uncle Bob’s clean architecture.
In my app basically there i put a text and a button on the user interface. When a user clicks the button, it will trigger a usecase (TextToSpeechUseCase) from viewmodel.
Here is the part i get stuck is : in my TextToSpeechUseCase i will use an service/manager interface like “ITtsService” then in Frameworks & Drivers layer i will implement it with using android framework dependencies.
So i need your help in two points
1-)Is my approach correct ?
2-)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 ?
iAmTryingToBeAnAndroidDev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.