https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
u

윤현준

11/08/2023, 1:27 AM
I've heard new KMM(1.5.1) version is released. can I expect to use Hilt/Dagger feature for it at this version now?
j

Jeff Lockhart

11/08/2023, 3:43 AM
Do you mean Compose Multiplatform 1.5.10? Dagger/Hilt is a Java library and doesn't support Kotlin Multiplatform.
u

윤현준

11/08/2023, 3:56 AM
I see. From what you've said, it seems unlikely that the module, which is Java-based and targeted for Android, will be operated in KMM in the future Thanks!!
j

Jeff Lockhart

11/08/2023, 3:59 AM
Yes, it would need to be rewritten in Kotlin before that's even a possibility. You might try Koin for KMP dependency injection.
u

윤현준

11/08/2023, 4:08 AM
After seeing your comment, I looked into Koin. It seems that changing all my generated dependency injections to Koin could be the solution. Thank you for the advice. Haha, have a great day.
j

Jeff Lockhart

11/08/2023, 4:33 AM
Thanks, you're welcome.
👍 1
3 Views