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

Olenyov Kirill

04/09/2020, 2:20 PM
Hi, how can I share actual/expect code for iOS and tvOS. For example, “expect” CoroutineDispatcher implementation is the same for iOS and tvOS but I need to copy/paste it in each ios/tvos source sets..
a

Artyom Degtyarev [JB]

04/09/2020, 2:32 PM
If you want to share the
expect
part, it can be done by specifying some “appleCommon” source set with your iOS&tvOS depending on it.
actual
can also be shared, but should not be resolving correctly, as those targets have different platform libraries sets.
o

Olenyov Kirill

04/09/2020, 2:34 PM
Thanks, I will try
3 Views