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

Jason5lee

07/21/2021, 1:46 PM
I want to write a common library that only has common sourceset and it can be depended from the common main of another mpp project and the codes run on any target. How should I do it?
b

Big Chungus

07/21/2021, 3:00 PM
Ya can't. All targets needs to be declared and published explicitly, even if they have no sources
j

Jason5lee

07/21/2021, 3:06 PM
So how does something like “coroutine-core” do?
b

Big Chungus

07/21/2021, 3:12 PM
They declare all targets explicitly
Also even coroutines-core doesn't cover all the targets
j

Jason5lee

07/21/2021, 3:18 PM
So is there a list of all targets?