I was wondering if anyone came across this situation:
Basically creating an abstract testing class that other testing classes use to initialize dagger.
if I use fun into(test:DaggerTest) then the values will not be injected at all.
Only way I got it to work was by creating an individual into (for each testing class) function which allows dagger to member inject.
I think that this is a lot of boiler plate code and since just using an into function with DaggerTest class will not work I was thinking I could use generics in some way.
There are a lot of limitations when it comes to Dagger. E.g. builders have to be interfaces. Which got me stuck any ideas?
I have attached code snippets.
I am using dagger, kotlin, anvil
My setup now is dagger factories and just use anvil for component creation
Any help is more then appreciated