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

rsetkus

10/21/2020, 3:31 PM
Hi. Changed ios platform declaration from
iosX64("ios")
to
ios()
and now need to create modules iosArm64Main and iosX64Main. Is there any way to point both targets to iosMain sourceset only? Does it mean that now I would need duplicate
actual
implementation for each target?
⬆️ 1
c

Casey Brooks

10/21/2020, 3:34 PM
1.4 introduced hierarchical sourcesets which sets up this structure for you automatically https://kotlinlang.org/docs/reference/whatsnew14.html#sharing-code-in-several-targets-with-the-hierarchical-project-structure
👍🏻 2
r

rsetkus

10/21/2020, 4:59 PM
It was a bit misleading from IDE point because there were no to create
actual
class for
iosMain
. Thanks @Casey Brooks. Sorted!