damianpetla / kotlin-dagger-example

Example of Android project showing integration with Kotlin and Dagger 2
535 stars 57 forks source link

No Dagger 2 generated classes for androidTest (question) #7

Closed Yougin closed 8 years ago

Yougin commented 8 years ago

Hey Damian, thanks for a great example.

Have you tried having Components in androidTest folder? It seems that Dagger2 doesn't generate its files for this setup. People solve this problem by using Android-apt plugin when using Java. Do you know anything about how to fix it in pure "Kotlin's way"? Thanks a lot.

Yougin commented 8 years ago

Here is how.

Thanks.