https://kotlinlang.org logo
Title
a

Adrian Witaszak

01/20/2023, 8:41 AM
Any recommended way of using Koin with JB Compose in the project with shared UI in shared? Right now, i use my own Injector interface with Impl as KoinComponent, but I wonder if there is an existing Koin solution in place.
p

Pedro Alberto

01/24/2023, 8:41 PM
i know this was 5 days ago but Koin has Koin Annotations were there is similar approach
is that what you are looking for ?
a

arnaud.giuliani

01/25/2023, 8:24 AM
In compose you can use the injection of parameters, inside Compose functions
I don’t understand well your question here 🤔
a

Adrian Witaszak

01/25/2023, 8:26 AM
I simplify it. 🙂 Can we use Koin Compose with Jetbrains compose in commonMain, not in androidMain? @arnaud.giuliani
a

arnaud.giuliani

01/25/2023, 8:28 AM
For now, the
koin-androidx-compose
is really tied to Android. But I’m just finishing to work on new
koin-compose
module those days.
This project https://github.com/burnoo/cokoin is bringing compose JB with Koin
if you want to try right now,. after that you will see my next publish about
koin-compose
a

Adrian Witaszak

01/25/2023, 8:29 AM
any estimates for your release?
a

arnaud.giuliani

01/25/2023, 9:00 AM
current February
hope mid February
a

Adrian Witaszak

01/25/2023, 9:02 AM
Thank you, @arnaud.giuliani I'll have a look at the Cokoin. Thanks again for your great work!
a

arnaud.giuliani

01/25/2023, 9:04 AM
yeah for now, you can begin to play with cokoin 👍