william
03/06/2021, 2:18 PMatomicfu in a multiplatform project for common code? having some trouble with it and could use a reference projectOleg Yukhnevich
03/06/2021, 3:33 PMOleg Yukhnevich
03/06/2021, 3:34 PMwilliam
03/06/2021, 5:09 PMOleg Yukhnevich
03/06/2021, 7:05 PMOleg Yukhnevich
03/06/2021, 7:05 PMeygraber
03/08/2021, 12:39 PM:core) that has the atomicfu plugin, and another module (:sample) that depends on it, but does not use the plugin or declare a dependency on atomicfu.
At runtime, when :sample invokes code from :core that uses atomicfu internally, it crashes with NoClassDefFoundError: Failed resolution of: Lkotlinx/atomicfu/AtomicFU
The only way to fix that is to add the atomicfu plugin to :sample but i don't want to impose that on everyone that has a dependency on :core (it's part of a library).
I know this isn't the case with libraries like coroutines or rsocket, so if you have any ideas that would be helpful.eygraber
03/08/2021, 6:21 PMapi("org.jetbrains.kotlinx:atomicfu:0.15.1") to the :core modulewilliam
03/10/2021, 1:44 PMapi if your core module exposes something from atomicfueygraber
03/10/2021, 1:53 PMwilliam
03/10/2021, 11:21 PM