Maurice Wingbermuhle
11/29/2019, 10:34 AMkotlin.native.concurrent.freeze()
. Can anyone tell me what gradle imports I need? Cannot find it online...Artyom Degtyarev [JB]
11/29/2019, 10:37 AMMaurice Wingbermuhle
11/29/2019, 10:39 AMorg.jetbrains.kotlin:kotlin-stdlib-common:1.3.60
Maurice Wingbermuhle
11/29/2019, 10:41 AMorg.jetbrains.kotlin:kotlin-stdlib:1.3.60
, but no success eitherArtyom Degtyarev [JB]
11/29/2019, 10:48 AMMaurice Wingbermuhle
11/29/2019, 10:51 AMSam
11/29/2019, 11:16 AMArtyom Degtyarev [JB]
11/29/2019, 11:26 AMfreeze()
in the iosMain
sourceSet? It seems like the IDE can interpret it as a common code. If so, it should not be a problem - on the compilation stage everything should be resolved correctly.Maurice Wingbermuhle
11/29/2019, 11:58 AMMaurice Wingbermuhle
11/29/2019, 12:00 PMnative
red in the statement import kotlin.native.concurrent
Artyom Degtyarev [JB]
11/29/2019, 12:00 PMiosX64Main, iosArm64Main
in your case). Otherwise, the IDE will be unable to resolve it.
But, maybe, the compiler itself will be smart enough to resolve the import in the iosMain. One can give it a try, at least.Maurice Wingbermuhle
11/29/2019, 12:03 PMMaurice Wingbermuhle
11/29/2019, 12:04 PMiosX64Main
and iosArm64Main
depend on iosMain
, and that worked out so farArtyom Degtyarev [JB]
11/29/2019, 12:06 PMMaurice Wingbermuhle
11/29/2019, 12:08 PMiosMain
) that imports kotlin.native.concurrent.ThreadLocal
and that does not have any issue at all...Artyom Degtyarev [JB]
11/29/2019, 12:10 PMMaurice Wingbermuhle
11/29/2019, 12:17 PMMaurice Wingbermuhle
11/29/2019, 12:19 PM