how we can use DI in KMM.
I mean automatic DI for ApiServices, UseCases etc ? and ideas ?
07/03/2021, 8:44 AM
You can't use annotation based di on kmp, though
07/03/2021, 8:47 AM
I create simple class represent as a Wrapper of all my usecases and apiServices and it’s support lazy block.
But I think in automatic register instances by using reflection ? can I do it ?
for example I put all my Account UseCases on Specific Package /src/commonMain/com/app/domain/usecases/account/
and by reflection Read All Classes and check if this class implements AccountUseCase imitate this object and push it to my Wrapper Class