Hello :wave: I started using Koin plugin for some ...
# koin
o
Hello 👋 I started using Koin plugin for some reason the plugin not recognize binds:
Copy code
interface SayHello {
    fun sayHello()
}
interface SayGoodbye {
    fun sayGoodbye()
}
class Gestures : SayHello, SayGoodbye {
    override fun sayHello() {
        println("Hello")
    }

    override fun sayGoodbye() {
        println("Goodbye")
    }
}
class Wave(
    private val gestures: SayHello
) {
    fun wave() {
        gestures.sayHello()
    }
}

fun bindingReproduce(){
    loadKoinModules(
        listOf(
            module {
                singleOf(::Gestures) binds arrayOf(SayHello::class, SayGoodbye::class)
            },
            module { 
                singleOf(::Wave)
            }
        )
    )
}
Type is not declared in Koin modules: . SayHello, does anyone know why it is happening?
👀 1
👍 1
a
Hello @Ori Spokoini. Thank you for an example code! It's probably some error with
binds arrayOf
parsing. Will be fixed!
❤️ 1
n
koin plugin ? what is it ? Add compile error if bad injection detected ?
o
@Nicolas Chaduc take a look :)

https://www.youtube.com/watch?v=UupDkV0qF-0

👍 1