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

AmrJyniat

03/10/2023, 8:03 AM
Hi, a newbie KMM here I saw a different Coroutine dependency
coroutines-core-native-mt
for KMM project, is it correct that this one makes Coroutine works on IOS as Android? do still I need it in the newest version or the
coroutines-core
enough?
j

John O'Reilly

03/10/2023, 8:21 AM
You shouldn't need to use that dependency any more.....with use now of new memory model that was enabled by default in Kotlin 1.7.20 https://kotlinlang.org/docs/native-memory-manager.html
a

AmrJyniat

03/10/2023, 8:23 AM
Thank you John! can you update your helpful answer here please for upcoming newbie like me
r

rudolf.hladik

03/10/2023, 9:03 AM
i'm not sure about that, because latest coroutines (1.6.4.) are build on kotlin 1.6.21 where the new MM isn't yet enabled by default. I would wait for coroutines 1.7.0, the RC is already released so give it a week, maybe less or use
native-mt
branch
h

hfhbd

03/10/2023, 12:49 PM
The final binary defines the MM, so you can use Kotlin 1.0 (or 16.24) with the new MM too.
5 Views