InsertKoinIO / koin-annotations

Koin Annotations - About Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform insert-koin.io
https://insert-koin.io
Apache License 2.0
131 stars 36 forks source link

RecyclerView.Adapter not exists in autogenerated module files #36

Open ugurcany opened 2 years ago

ugurcany commented 2 years ago

I just switched to koin 3.2 & annots 1.0.0 versions. I'm using it in one of my android library modules. the issue is my recyclerview.adapter classes are not detected and not included in the autogenerated file.

@Factory
class ****Adapter(private val imageLoader: ImageLoader) :
    RecyclerView.Adapter<****Adapter.ItemViewHolder>()

This class contains inner classes for ViewHolders and an interface for click listeners. And as far as I understand, they might cause this issue. If I remove them from the adapter, everything works fine. Is this a known issue?

arnaudgiuliani commented 2 years ago

Could you reproduce a small test case?