https://kotlinlang.org logo
#koin-contributors
Title
# koin-contributors
k

Kirill Rozov

01/12/2020, 2:57 PM
Hi @arnaud.giuliani . What do you think about possibility to include module into another modules? Like in Dagger.
It’s not good for multi module Gradle projects
For now I collect all Koin modules into list, store list in public property in Gradle module and after that connect it from application module
k

Kirill Rozov

01/12/2020, 3:05 PM
This is not about modularization
I want better declaration of Koin modules
multimodule-ktor
sample has only single Koin module in every Gradle module
b

BorzdeG

01/12/2020, 3:08 PM
Copy code
import org.koin.dsl.module

val moduleDb = module { 
...	 
}
And then you can enable moduleDb anywhere
a

arnaud.giuliani

01/15/2020, 8:16 AM
Hi @Kirill Rozov you mean some links from one moduel to many
to load directly linked modules?
k

Kirill Rozov

01/15/2020, 8:17 AM
It may look like
Copy code
val module = module {

   include(module1, module2)
}
or
Copy code
It may loke like
val module = module(include = listOf(module1, module2)) {

   }
a

arnaud.giuliani

01/15/2020, 8:20 AM
yes, we could have easily an extension of the Module DSL like that yes
module( includes = ...){ }
k

Kirill Rozov

01/15/2020, 8:21 AM
👍
3 Views