InsertKoinIO / koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
https://insert-koin.io
Apache License 2.0
9.12k stars 721 forks source link

Kotlin Native Support #244

Closed amrboxit4me closed 5 years ago

amrboxit4me commented 6 years ago

Is your feature request related to a problem?

arnaudgiuliani commented 6 years ago

Hello,

@zsmb13 has already made a good work about Kotlin Native version: https://github.com/InsertKoinIO/koin/issues/120

This will be possible if we have enough users for this kind of feature, because this clearly structuring. We have to take away form some JVM types that we use in core.

But why not :)

Wavesonics commented 6 years ago

This would be awesome

rick2781 commented 5 years ago

Is anyone working on this yet? If not, I can help.

zsmb13 commented 5 years ago

I believe the module plan I laid out in the related issue for JS will no longer work with the current multiplatform project model, as it now seems to force using multiple source sets in a single module rather than a module per target. I'm not sure if the old structure can still be used, my impression was that it can't be.

(I also don't have time to work on this anymore, unfortunately, at least in the foreseeable future.)

arnaudgiuliani commented 5 years ago

I have to close firstly Koin 2.0 before launching Koin MPP. Soon a 2.0-RC 👍

arnaudgiuliani commented 5 years ago

@zsmb13 do you have time to check against Koin v2 architecture? There is some use of jvm hashet/hashmap to speedup the compoment lookup. Architecture components has been also reduced in this way also.

zsmb13 commented 5 years ago

I'd love to help, but I won't be able to look at it for a while. If there's someone else to take it on, feel free to go ahead, I unfortunately can't promise a timeframe for my involvement.

arnaudgiuliani commented 5 years ago

sure no problem :)

I'll take time to look at it in a moment.

JavierSegoviaCordoba commented 5 years ago

Any update about this?

arnaudgiuliani commented 5 years ago

Kotlin native support will be one of the next big features for Koin 👍 Will begin to work on it in a moment. Would like to push some alpha about it end of summer/september depending on my avilability.

arnaudgiuliani commented 5 years ago

WIP for Koin 3.0.0

slipdef commented 5 years ago

What is ETA for Koin 3.0 tho?

arnaudgiuliani commented 5 years ago

for now, don't know sorry. Need to push many fix/improve on 2.1.x. Can be interesting to shoot the first alpha, to help test and improve perfs.