Hi, I'm new to both KMP/CMP, and wanted to proceed...
# multiplatform
b
Hi, I'm new to both KMP/CMP, and wanted to proceed with CMP for now as UI sharing is such an ease. I tried Koin to implement but the tutorials on YT are more focused on KMP, I'm sure if it works for CMP too. It's so much confusion for me already. What would you suggest?
j
Koin works great with KMP and Compose Multiplatform.

https://youtu.be/wf1D9d_K6_A

https://insert-koin.io/docs/reference/koin-compose/multiplatform/
👀 1
j
https://medium.com/@j.c.moreirapinto/simplifying-cross-platform-app-development-dependency-injection-with-koin-in-compose-multiplatform-f77595396fbc I think this one was quite nice. But Koin itself agnostic from Compose. You dont want inject inside composables anyway in general except top layer. I recommend using context isolation in Koin and create iOS and Android koin components. Also imo Circuit library works very well inject composables with ui and presenters in Koin. Using it myself.
👍 2
200 Views