I am trying to get atomicfu and/or stately working...
# multiplatform
t
I am trying to get atomicfu and/or stately working in my common module. i add the implementation lines, but they show as not available in the code. anybody have an example of using these from kmm common module?
k
What's your config look like?
I mean we use stately a lot 🙂
t
I am sure you do. 🙂
do you want the whole thing? kind of long…
k
Well, I guess I should ask more directed questions. When you say they don't show up, is that in common code or platform-specific?
Also, do you know if it compiles and it's just an IDE thing?
Also, these dependencies aren't yet configured to work with the hierarchical source set feature. Not sure if that's impacting the situation.
t
ah, yeah, that might be it. i will check your stately sample…
brb
k
Stately sample might be old...
Just fyi
t
No love thus far…
FYI, got it working. Basically ignored the whole atomicfu readme, and added this in my commonMain:
Copy code
implementation("org.jetbrains.kotlinx:atomicfu:$atomicfuVersion")
Note the lack of -common. It seems they do support the new fangled mp search. Tested on Android and iOS and all working!
k
Weird. The
-common
in stately means something else, I think anyway, There's no artifact that's just
co.touchlab:stately
. I haven't used atomicfu in a while, so can't comment on that.
t
i only needed the Atomic bits, so I am only pulling in atomicfu, not stately.