https://kotlinlang.org logo
#koin
Title
# koin
a

Ahmad Hassan

03/27/2023, 7:21 AM
Hi, how can we inject dependencies in Composable in compose multiplatform?
z

zt

03/27/2023, 3:00 PM
Koin recently added a compose multiplatform module which I believe should be able to do what you described
a

Ahmad Hassan

03/28/2023, 5:43 AM
I didn’t find something in docs. Can you mention something?
z

zt

03/28/2023, 3:16 PM
The koin-compose module. There doesn't seem to be any documentation on it currently but it should behave almost exactly like it does in the android compose module
a

arnaud.giuliani

03/31/2023, 12:55 PM
do you have details about your gradle config?
a

Adrian Witaszak

04/02/2023, 2:38 PM
I've got an issue adding compose to js target with Compose for Web
Copy code
* What went wrong:
Could not determine the dependencies of task ':apps:admin:jsPackageJson'.
> Could not find koin-compose-js-1.0.0.klib (io.insert-koin:koin-compose-js:1.0.0).
  Searched in the following locations:
      <https://repo.maven.apache.org/maven2/io/insert-koin/koin-compose-js/1.0.0/koin-compose-js-1.0.0.klib>
a

arnaud.giuliani

04/04/2023, 7:17 AM
Thanks for your feedback @burnoo 🙂 You're welcome to contribute 🙏
7 Views