Animesh Sahu

11/30/2020, 3:46 PM
If a dependency artifact missing for a platform what's correct way to build in such situation? As an example KotlinLogging currently only supports Linux, so is there a way to define actual function which returns empty implementation of some of the expect functions in that lib (till lib extends support to other platform)?

Marc Knaup

11/30/2020, 3:54 PM
#multiplatform I don’t think that there is an easy way except for completely wrapping the library behind your own multiplatform library.


11/30/2020, 4:22 PM
yeah I don't know a way to do this. This is one reason it can be nice for library authors to base their public API around interfaces instead of expect classes. You can then publish the interface to all platforms and users can supply their own implementations where necessary.

Marc Knaup

11/30/2020, 4:41 PM
Yes, but only for dummy implementations. Otherwise you could jus contribute the missing platform back to the project 🙂