If a dependency artifact missing for a platform wh...
# announcements
a
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)?
m
#C3PQML5NU I don’t think that there is an easy way except for completely wrapping the library behind your own multiplatform library.
r
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.
m
Yes, but only for dummy implementations. Otherwise you could jus contribute the missing platform back to the project 🙂